Scroll to navigation

CASTXML(1) User Commands CASTXML(1)

NAME

castxml - Create an XML representation of C++ declarations

SYNOPSIS

castxml ( <castxml-opt> | <clang-opt> | <src> )...

DESCRIPTION

Options interpreted by castxml are listed below. Remaining options are given to the internal Clang compiler.

OPTIONS

--castxml-cc-<id> <cc>

--castxml-cc-<id> "(" <cc> <cc-opt>... ")"

Configure the internal Clang preprocessor and target platform to match that of the given compiler command. The <id> must be "gnu", "msvc", "gnu-c", or "msvc-c". <cc> names a compiler (e.g. "gcc") and <cc-opt>... specifies options that may affect its target (e.g. "-m32").

--castxml-output=<v>

Write castxml-format output to <src>.xml or file named by '-o' The <v> specifies the "epic" format version number to generate, and must be '1'.

--castxml-gccxml

Write gccxml-format output to <src>.xml or file named by '-o' Use this option if you need an output similar to the one generated by the legacy gccxml tool.

--castxml-start <name>[,<name>]...

Start AST traversal at declaration(s) with the given (qualified) name(s). Multiple names may be specified as a comma-separated list or by repeating the option.

-help, --help

Print castxml and internal Clang compiler usage information

-o <file>

Write output to <file>

--version

Print castxml and internal Clang compiler version information

Help for the internal Clang compiler appears below.

---------------------------------------------------------------

OVERVIEW: clang LLVM compiler

USAGE: clang [options] file...

OPTIONS:

-###
Print (but do not run) the commands to run for this compilation
Static analyzer report output format (html|plist|plist-multi-file|plist-html|sarif|text).
Run the static analyzer
Emit ARC errors even if the migrator can fix them
Output path for the plist report
Add <dir> to search path for binaries and object files used implicitly
Include comments from within macros in preprocessed output
OpenCL only. Allow denormals to be flushed to zero.
OpenCL only. Sets -cl-finite-math-only and -cl-unsafe-math-optimizations, and defines __FAST_RELAXED_MATH__.
OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf.
OpenCL only. Specify that single precision floating-point divide and sqrt used in the program source are correctly rounded.
OpenCL only. Generate kernel argument metadata.
OpenCL only. Allow use of less precise MAD computations in the generated binary.
OpenCL only. Allow use of less precise no signed zeros computations in the generated binary.
OpenCL only. This option disables all optimizations. By default optimizations are enabled.
OpenCL only. Treat double precision floating-point constant as single precision constant.
OpenCL language standard to compile for.
OpenCL only. This option is added for compatibility with OpenCL 1.0.
OpenCL only. Defines that the global work-size be a multiple of the work-group size specified to clEnqueueNDRangeKernel
OpenCL only. Allow unsafe floating-point optimizations. Also implies -cl-no-signed-zeros and -cl-mad-enable.
Specifies configuration file
Compile CUDA code for both host and device (default). Has no effect on non-CUDA compilations.
Compile CUDA code for device only
Compile CUDA code for host only. Has no effect on non-CUDA compilations.
Include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once.
Enable device-side debug info generation. Disables ptxas optimizations.
Ignore environment variables to detect CUDA installation
CUDA installation path
Add directory to the C++ SYSTEM include search path
Include comments in preprocessed output
Only run preprocess, compile, and assemble steps
Print macro definitions in -E mode in addition to normal output

-dependency-dot <value> Filename to write DOT-formatted header dependencies to

Filename (or -) to write dependency output to
Print include directives in -E mode in addition to normal output
Print macro definitions in -E mode instead of normal output
Define <macro> to <value> (or 1 if <value> omitted)
Emit Clang AST files for source inputs
Generate Inteface Stub Files.
Use the LLVM representation for assembler and object files
Generate Interface Stub Files, emit merged text not binary.
Enable linker job to emit a static library.
Trivial automatic variable initialization to zero is only here for benchmarks, it'll eventually be removed, and I'm OK with that because I'm only using it to benchmark
Only run the preprocessor
Follows the AAPCS standard that all volatile bit-field write generates at least one load. (ARM only).
Emit an address-significance table
Enable C++17 aligned allocation functions
Treat editor placeholders as valid source code
Use ANSI escape codes for diagnostics
Use Apple's kernel extensions ABI
Force linking the clang builtins runtime library
Enable Apple gcc-compatible #pragma pack handling

-fapplication-extension Restrict code to those available for App Extensions

-fasm-blocks

-fautolink

Place each function's basic blocks in unique sections (ELF Only) : all | labels | none | list=<file>
Enable the 'blocks' language feature
Accept non-standard constructs supported by the Borland compiler
Use the last modification time of <file> as the build session timestamp
Time when the current build session started
Load the clang builtins module map file.

-fc++-static-destructors

Make the x10 register call-saved (AArch64 only)
Make the x11 register call-saved (AArch64 only)
Make the x12 register call-saved (AArch64 only)
Make the x13 register call-saved (AArch64 only)
Make the x14 register call-saved (AArch64 only)
Make the x15 register call-saved (AArch64 only)
Make the x18 register call-saved (AArch64 only)
Make the x8 register call-saved (AArch64 only)
Make the x9 register call-saved (AArch64 only)

-fcaret-diagnostics

-fcf-protection=<value> Instrument control-flow architecture protection. Options: return, branch, full, none.

Enable cf-protection in 'full' mode
Enable C++ builtin type char8_t
Attempt to match the ABI of Clang <version>
Enable colors in diagnostics
Treat each comma separated argument in <arg> as a documentation comment block command
Place uninitialized global variables in a common block
Require member pointer base types to be complete if they would be significant under the Microsoft ABI
Assume functions may be convergent
Enable support for the C++ Coroutines TS
Generate coverage mapping to enable code coverage analysis
Generate instrumented code to collect context sensitive execution counts into <directory>/default.profraw (overridden by LLVM_PROFILE_FILE env var)
Generate instrumented code to collect context sensitive execution counts into default.profraw (overridden by LLVM_PROFILE_FILE env var)
Use approximate transcendental functions
Flush denormal floating point values to zero in CUDA device mode.
Use 32-bit pointers for accessing const/local/shared address spaces
Enable C++ exceptions
Place each data in its own section
The compilation directory to embed in the debug info.
Default DWARF version to use, if a -g option caused DWARF debug info to be produced
Emit extra debug info to make sample profile more accurate
Emit macro debug information
remap file source paths in debug info
Use DWARF base address selection entries in .debug_ranges
Place debug types in their own section (ELF Only)
Allow __declspec as a keyword
Parse templated function definitions at the end of the translation unit
Treat usage of null pointers as undefined behavior (default)
Print absolute paths in diagnostics
Prevent optimization remarks from being output if they do not have at least this profile count
Print fix-its in machine parseable form
Print source range spans in numeric form
Enable profile hotness information in diagnostic line
Display include stacks for diagnostic notes
Print option name with mappable diagnostics
Print a template comparison tree for differing templates
Enable alternative token representations '<:', ':>', '<%', '%>', '%:', '%:%:' (default)
Discard value names in LLVM IR
Allow '$' in identifiers
Enable '[[]]' attributes in all C and C++ language modes

-fdwarf-directory-asm

Use DWARF style exceptions
Embed placeholder LLVM IR data as a marker
Embed LLVM bitcode (option: off, all, bitcode, marker)
Embed LLVM IR bitcode as data
Emit all declarations, even if unused
Use emutls functions to access thread_local variables
Enable matrix data type and related builtin functions
Enable support for exception handling
Enable the experimental new constant interpreter
Enables an experimental new pass manager in LLVM.
Use the experimental C++ class ABI for classes with virtual tables
Enables experimental strict floating point in LLVM.
Allow aggressive, lossy floating-point optimizations
remap file source paths in debug info and predefined preprocessor macros
Use separate accesses for consecutive bitfield runs with legal widths and alignments.
Enable fixed point types
Reserve register r19 (Hexagon only)
Reserve the r9 register (ARM only)
Reserve the x10 register (AArch64/RISC-V only)
Reserve the x11 register (AArch64/RISC-V only)
Reserve the x12 register (AArch64/RISC-V only)
Reserve the x13 register (AArch64/RISC-V only)
Reserve the x14 register (AArch64/RISC-V only)
Reserve the x15 register (AArch64/RISC-V only)
Reserve the x16 register (AArch64/RISC-V only)
Reserve the x17 register (AArch64/RISC-V only)
Reserve the x18 register (AArch64/RISC-V only)
Reserve the x19 register (AArch64/RISC-V only)
Reserve the x1 register (AArch64/RISC-V only)
Reserve the x20 register (AArch64/RISC-V only)
Reserve the x21 register (AArch64/RISC-V only)
Reserve the x22 register (AArch64/RISC-V only)
Reserve the x23 register (AArch64/RISC-V only)
Reserve the x24 register (AArch64/RISC-V only)
Reserve the x25 register (AArch64/RISC-V only)
Reserve the x26 register (AArch64/RISC-V only)
Reserve the x27 register (AArch64/RISC-V only)
Reserve the x28 register (AArch64/RISC-V only)
Reserve the x29 register (AArch64/RISC-V only)
Reserve the x2 register (AArch64/RISC-V only)
Reserve the x30 register (AArch64/RISC-V only)
Reserve the x31 register (AArch64/RISC-V only)
Reserve the x3 register (AArch64/RISC-V only)
Reserve the x4 register (AArch64/RISC-V only)
Reserve the x5 register (AArch64/RISC-V only)
Reserve the x6 register (AArch64/RISC-V only)
Reserve the x7 register (AArch64/RISC-V only)
Reserve the x8 register (AArch64/RISC-V only)
Reserve the x9 register (AArch64/RISC-V only)
Always emit a debug frame section
Emits more virtual tables to improve devirtualization
Enable support for int128_t type
Form fused FP ops (e.g. FMAs): fast (everywhere) | on (according to FP_CONTRACT pragma) | off (never fuse). Default is 'fast' for CUDA/HIP and 'on' otherwise.
Specifies the exception behavior of floating-point operations.
Controls the semantics of floating-point calculations.
Assert that the compilation takes place in a freestanding environment
Place each function in its own section
Enables the global instruction selector

-fgnu-inline-asm

Allow GNU-extension keywords regardless of language standard
Generate output compatible with the standard GNU Objective-C runtime
Use the gnu89 inline semantics
Sets various macros to claim compatibility with the given GCC version (default is 4.2.1)

-fgpu-allow-device-init Allow device side init function in HIP

Generate relocatable device code, also known as separate compilation mode
Use new kernel launching API for HIP
Enable support for ignoring exception handling constructs
Implicitly search the file system for module map files.
Inline suitable functions

-finline-hint-functions Inline functions which are (explicitly or implicitly) marked inline

Instrument function entry only, after inlining, without arguments to the instrumentation call
Like -finstrument-functions, but insert the calls after inlining
Generate calls to instrument function entry and exit
Enable the integrated assembler
Run cc1 in-process
Use jump tables for lowering switches
Keep static const variables if unused
Enable implicit vector bit-casts
Controls the backend parallelism of -flto=thin (default of 0 means the number of threads will be derived from the number of CPUs detected)
Set LTO mode to either 'full' or 'thin'
Enable LTO in 'full' mode
remap file source paths in predefined preprocessor macros
Require math functions to indicate errors by setting errno
Max total number of preprocessed tokens for -Wmax-tokens.
Specify the maximum alignment to enforce on pointers lacking an explicit alignment
Allow merging of constants
Format message diagnostics so that they fit within N columns
Specify the mapping of module name to precompiled module file, or load a module file if name is omitted.
Load this module map file
Specify the name of the module to build
Specify the module cache path
Require declaration of modules used within a module
Disable validation of the diagnostic options when loading the module
Ignore the definition of the given macro when building and loading modules
Specify the interval (in seconds) after which a module file will be considered unused
Specify the interval (in seconds) between attempts to prune the module cache
Search even non-imported modules to resolve references
Like -fmodules-decluse but requires all headers to be in modules
Enable support for the C++ Modules TS
Specify the module user build path
Validate PCM input files based on content if mtime differs
Don't verify input files for the modules if the module has been successfully validated or loaded during this build session
Validate the system headers that a module depends on when loading the module
Enable the 'modules' language feature
Dot-separated value representing the Microsoft compiler version number to report in _MSC_VER (0 = don't define it (default))
Enable full Microsoft Visual C++ compatibility
Accept some non-standard constructs supported by the Microsoft compiler
Microsoft compiler version number to report in _MSC_VER (0 = don't define it (default))

-fnew-alignment=<align> Specifies the largest alignment guaranteed by '::operator new(size_t)'

-fno-access-control

Don't emit an address-significance table

-fno-allow-editor-placeholders

-fno-asm-blocks

Don't assume that C++'s global operator new can't alias any pointer
Disable generation of linker directives for automatic library linking

-fno-blocks

Disable implicit builtin knowledge of a specific function
Disable implicit builtin knowledge of functions
Disable C++ static destructor registration

-fno-caret-diagnostics

Disable C++ builtin type char8_t
Disable colors in diagnostics
Compile common globals like normal definitions
Do not require member pointer base types to be complete if they would be significant under the Microsoft ABI

-fno-constant-cfstrings Disable creation of CodeFoundation-type constant strings

-fno-coroutines-ts

Disable code coverage analysis
Disable auto-generation of preprocessed source files and a script for reproduction during a clang crash
Don't use approximate transcendental functions

-fno-cuda-short-ptr

-fno-cxx-exceptions

-fno-data-sections

-fno-debug-info-for-profiling

Do not emit macro debug information

-fno-debug-ranges-base-address

Disallow __declspec as a keyword
Disable delayed template parsing
Do not treat usage of null pointers as undefined behavior
Do not include fixit information in diagnostics
Disallow alternative token representations '<:', ':>', '<%', '%>', '%:', '%:%:'
Do not discard value names in LLVM IR
Disallow '$' in identifiers
Disable '[[]]' attributes in all C and C++ language modes

-fno-dwarf-directory-asm

-fno-elide-constructors Disable C++ copy constructor elision

Do not elide types when printing diagnostics
Disable support for exception handling
Disables an experimental new pass manager in LLVM.
Do not use the experimental C++ class ABI for classes with virtual tables

-fno-fast-math

Use large-integer access for consecutive bitfield runs.
Disable fixed point types

-fno-force-dwarf-frame

-fno-force-emit-vtables

Disable support for int128_t type

-fno-function-sections

Disables the global instruction selector
Disable GNU style inline asm

-fno-gnu89-inline

Don't allow device side init function in HIP

-fno-gpu-rdc

-fno-hip-new-launch-api Don't use new kernel launching API for HIP

Disable the integrated assembler
Spawn a separate process for each cc1
Do not use jump tables for lowering switches

-fno-keep-static-consts Don't keep static const variables if unused

Disable LTO mode (default)

-fno-math-errno

Disallow merging of constants
Disable C++ access control
do not infer Objective-C related result type based on method family
Do not treat C++ operator name keywords as synonyms for operators
Do not generate code for uses of this PCH that assumes an explicit object file will be built for the PCH
Do not generate debug info for types in an object file built from this PCH and do not generate them elsewhere
Use GOT indirection instead of PLT to make external function calls (x86 only)
Do not preserve comments in inline assembly
Disable generation of profile instrumentation.
Disable generation of profile instrumentation.
Disable using instrumentation data for profile-guided optimization
Don't use atexit or __cxa_atexit to register global destructors

-fno-reroll-loops

-fno-rewrite-imports

-fno-rewrite-includes

-fno-ropi

Do not add -rpath with architecture-specific resource directory to the linker flags
Disable generation of RTTI data
Disable generation of rtti information

-fno-rwpi

Disable poisoning array cookies when using custom operator new[] in AddressSanitizer
Disable use-after-scope detection in AddressSanitizer
Disable ODR indicator globals

-fno-sanitize-blacklist Don't use blacklist file for sanitizers

Do not make the jump table addresses canonical in the symbol table
Disable control flow integrity (CFI) checks for cross-DSO calls.
Disable specified features of coverage instrumentation for Sanitizers
Disable origins tracking in MemorySanitizer
Disable use-after-destroy detection in MemorySanitizer
Disable recovery for specified sanitizers
Disable sanitizer statistics gathering.
Disable atomic operations instrumentation in ThreadSanitizer
Disable function entry/exit instrumentation in ThreadSanitizer
Disable memory access instrumentation in ThreadSanitizer
Disable trapping for specified sanitizers
Disable trapping for all sanitizers
Force wchar_t to be an unsigned int
Do not include column number on diagnostics
Do not include source location information with diagnostics
char is unsigned
Allow optimizations that ignore the sign of floating point zeros
Disable spell-checking

-fno-split-lto-unit

Disable stack clash protection
Disable the use of stack protectors

-fno-stack-size-section

Limit debug information produced to reduce size of debug binary
Relax language rules and try to match the behavior of the target's native float-to-int conversion instructions
Don't treat control flow paths that fall off the end of a non-void function as unreachable
Disable SYCL kernels compilation for device
Directly create compilation output files. This may lead to incorrect incremental builds if the compiler crashes

-fno-threadsafe-statics Do not emit code to make initialization of local statics thread safe

Do not process trigraph sequences

-fno-unique-basic-block-section-names

-fno-unique-internal-linkage-names

Don't use unique names for text and data sections
Turn off loop unroller
Don't use __cxa_atexit for calling destructors
Use .ctors/.dtors instead of .init_array/.fini_array

-fno-use-line-directives

-fno-virtual-function-elimination

-fno-whole-program-vtables

-fno-xray-always-emit-customevents

-fno-xray-always-emit-typedevents

Omit function index section at the expense of single-function patching performance

-fno-xray-ignore-loops

-fno-xray-instrument

Don't place zero initialized data in BSS

-fno-zvector

Use EH-safe code when synthesizing retains and releases in -fobjc-arc
Synthesize retain and release calls for Objective-C pointers
Enable Objective-C exceptions
Specify the target Objective-C runtime kind and version
Enable ARC-style weak references in Objective-C
Emit OpenMP code only for SIMD-based constructs.
Specify comma-separated list of triples OpenMP offloading targets to be supported
Parse OpenMP pragmas and generate parallel code.
Specify the output name of the file containing the optimization remarks. Implies -fsave-optimization-record. On Darwin platforms, this cannot be used with multiple -arch <arch> options.
Only include passes which match a specified regular expression in the generated optimization record (by default, include all passes)
Generate instrumented code to collect order file into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)
Specify the default maximum struct packing alignment
Recognize and construct Pascal-style string literals

-fpass-plugin=<dsopath> Load pass plugin from a dynamic shared object file (only with new pass manager).

Generate M NOPs before function entry and N-M NOPs after function entry
Override the default ABI to return all structs on the stack
Generate code for uses of this PCH that assumes an explicit object file will be built for the PCH
Generate debug info for types in an object file built from this PCH and do not generate them elsewhere
Instantiate templates already while building a PCH
Validate PCH input files based on content if mtime differs

-fplt

Load the named plugin (dynamic shared object)
Specify the prebuilt module path

-fpreserve-as-comments

Instrument only functions from files where names don't match all the regexes separated by a semi-colon
Instrument only functions from files where names match any regex separated by a semi-colon
Generate instrumented code to collect execution counts into <directory>/default.profraw (overridden by LLVM_PROFILE_FILE env var)
Generate instrumented code to collect execution counts into default.profraw (overridden by LLVM_PROFILE_FILE env var)
Generate instrumented code to collect execution counts into <file> (overridden by LLVM_PROFILE_FILE env var)
Generate instrumented code to collect execution counts into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)
Use instrumentation data for profile-guided optimization
Use the remappings described in <file> to match the profile data against names in the program
Specifies that the sample profile is accurate
Enable sample-based profile guided optimizations
Use instrumentation data for profile-guided optimization. If pathname is a directory, it reads from <pathname>/default.profdata. Otherwise, it reads from file <pathname>.
Allow division operations to be reassociated
Override the default ABI to return small structs in registers
Use atexit or __cxa_atexit to register global destructors
Enable C++17 relaxed template template argument matching
Turn on loop reroller

-frewrite-imports

-frewrite-includes

Generate read-only position independent code (ARM only)
Add -rpath with architecture-specific resource directory to the linker flags

-frtti-data

-frtti

Generate read-write position independent code (ARM only)
Level of field padding for AddressSanitizer
Enable linker dead stripping of globals in AddressSanitizer
Enable poisoning array cookies when using custom operator new[] in AddressSanitizer
Enable use-after-scope detection in AddressSanitizer
Enable ODR indicator globals to avoid false ODR violation reports in partially sanitized programs at the cost of an increase in binary size
Path to blacklist file for sanitizers
Make the jump table addresses canonical in the symbol table
Enable control flow integrity (CFI) checks for cross-DSO calls.
Generalize pointers in CFI indirect call type signature checks
Restrict sanitizer coverage instrumentation exclusively to modules and functions that match the provided special case list, except the blocked ones
Deprecated, use -fsanitize-coverage-blocklist= instead
Disable sanitizer coverage instrumentation for modules and functions that match the provided special case list, even the allowed ones
Deprecated, use -fsanitize-coverage-allowlist= instead
Specify the type of coverage instrumentation for Sanitizers
Select the HWAddressSanitizer ABI to target (interceptor or platform, default interceptor). This option is currently unused.
Enable origins tracking in MemorySanitizer
Enable origins tracking in MemorySanitizer
Enable use-after-destroy detection in MemorySanitizer
Enable recovery for specified sanitizers
Enable sanitizer statistics gathering.
Path to system blacklist file for sanitizers
Enable atomic operations instrumentation in ThreadSanitizer (default)
Enable function entry/exit instrumentation in ThreadSanitizer (default)
Enable memory access instrumentation in ThreadSanitizer (default)

-fsanitize-trap=<value> Enable trapping for specified sanitizers

Enable trapping for all sanitizers
Strip (or keep only, if negative) a given number of path components when emitting check metadata.
Turn on runtime checks for various forms of undefined or suspicious behavior. See user manual for available checks
Generate an optimization record file in a specific format
Generate a YAML optimization record file
Use SEH style exceptions
Allocate to an enum type only as many bytes as it needs for the declared range of possible values
Force wchar_t to be a short unsigned int

-fshow-column

Which overload candidates to show when overload resolution fails: best|all; defaults to all
char is signed
Enable C++14 sized global deallocation functions
Use SjLj style exceptions
Enable the superword-level parallelism vectorization passes
Provide minimal debug info in the object/executable to facilitate online symbolication/stack traces in the absence of .dwo/.dwp files when using Split DWARF
Enables splitting of the LTO unit
Enable stack clash protection
Enable stack protectors for all functions
Enable stack protectors for some functions vulnerable to stack smashing. Compared to -fstack-protector, this uses a stronger heuristic that includes functions containing arrays of any size (and any type), as well as any calls to alloca or the taking of an address from a local variable
Enable stack protectors for some functions vulnerable to stack smashing. This uses a loose heuristic which considers functions vulnerable if they contain a char (or 8bit integer) array or constant sized calls to alloca, which are of greater size than ssp-buffer-size (default: 8 bytes). All variable sized calls to alloca are considered vulnerable
Emit section containing metadata on function stack sizes
Emit full debug info for all types used by the program
Enable optimizations based on the strict definition of an enum's value range
Assume that overflowing float-to-int casts are undefined (default)

-fstrict-return

Enable optimizations based on the strict rules for overwriting polymorphic C++ objects
Enable SYCL kernels compilation for device
Build this module as a system module. Only used with -emit-module
Write minimized bitcode to <file> for the ThinLTO thin link only

-fthinlto-index=<value> Perform ThinLTO importing using provided function summary index

Minimum time granularity (in microseconds) traced by time profiler
Turn on time profiler. Generates JSON file based on output filename.

-ftrap-function=<value> Issue call to specified function rather than a trap instruction

Specify the function to be called on overflow
Trap on integer overflow
Process trigraph sequences
Stop initializing trivial automatic stack variables after the specified number of instances
Initialize trivial automatic stack variables: uninitialized (default) | pattern
Use unique names for basic block sections (ELF Only)
Uniqueify Internal Linkage Symbol Names by appending the MD5 hash of the module path

-funique-section-names

Turn on loop unroller

-fuse-init-array

Use #line in preprocessed output
Compute and store the hash of input files used to build an AST. Files with mismatching mtime's are considered valid if both contents is identical
Use the given vector functions library
Enable the loop vectorization passes
Generate verbose assembly output
Enables dead virtual function elimination optimization. Requires -flto=full
Give global C++ operator new and delete declarations hidden visibility
Give inline C++ member functions hidden visibility by default
Give global types 'default' visibility and global functions and variables 'hidden' visibility by default
Set the default symbol visibility for all global declarations
Use WebAssembly style exceptions

-fwhole-program-vtables Enables whole-program vtable optimization. Requires -flto

Treat signed integer overflow as two's complement
Store string literals as writable data
Always emit __xray_customevent(...) calls even if the containing function is not always instrumented
Always emit __xray_typedevent(...) calls even if the containing function is not always instrumented
DEPRECATED: Filename defining the whitelist for imbuing the 'always instrument' XRay attribute.
Filename defining the list of functions/types for imbuing XRay attributes.

-fxray-function-index

Don't instrument functions with loops unless they also meet the minimum function size
Sets the minimum function size to instrument with XRay
Select which XRay instrumentation points to emit. Options: all, none, function-entry, function-exit, function, custom. Default is 'all'. 'function' includes both 'function-entry' and 'function-exit'.
Generate XRay instrumentation sleds on function entry and exit
Tells clang to add the link dependencies for XRay.
List of modes to link in by default into XRay instrumented binaries.
DEPRECATED: Filename defining the whitelist for imbuing the 'never instrument' XRay attribute.

-fzero-initialized-in-bss

Enable System z vector language extension
Add directory to framework include search path

--gcc-toolchain=<value> Use the gcc toolchain at the given directory

Emit type record hashes in a .debug$H section
Generate CodeView debug information
Generate source-level debug information with dwarf version 2
Generate source-level debug information with dwarf version 3
Generate source-level debug information with dwarf version 4
Generate source-level debug information with dwarf version 5
Generate source-level debug information with the default dwarf version
Embed source text in DWARF debug sections
Emit debug line info directives only
Emit debug line number tables only
Generate debug info with external references to clang modules or precompiled headers
Restore the default behavior of not embedding source text in DWARF debug sections

-gno-inline-line-tables Don't emit inline line tables

Default max threads per block for kernel launch bounds for HIP
Set DWARF fission mode to either 'split' or 'single'
DWARF debug sections compression type
DWARF debug sections compression type
Put objects of at most <size> bytes into small data section (MIPS / Hexagon)
Generate source-level debug information
Display help for hidden options
Display available options
HIP device library
Link clang-offload-bundler bundles for HIP
HIP version in the format of major.minor.patch
Show header includes and nesting depth
Restrict all prior -I flags to double-quoted inclusion and remove current directory from include path
Enable builtin #include directories even when -nostdinc is used before or after -ibuiltininc. Using -nobuiltininc after the option disables it
Add directory to AFTER include search path
Add directory to SYSTEM framework search path, absolute paths are relative to -isysroot
Add directory to SYSTEM framework search path
Include macros from file before parsing
Include precompiled header file
Include file before parsing
Make the next included directory (-I or -F) an indexer header map
Set the -iwithprefix/-iwithprefixbefore prefix
Add directory to QUOTE include search path
Set the system root directory (usually /)
Add directory to end of the SYSTEM include search path
Add directory to SYSTEM include search path
Overlay the virtual filesystem described by file over the real file system
Set directory to include search path with prefix
Set directory to SYSTEM include search path with prefix
Add directory to SYSTEM include search path, absolute paths are relative to -isysroot
Add directory to include search path
Path to libomptarget-nvptx libraries
Add directory to library search path
Enable SVR4-style position-independent code (Mips only)
Return all structs in memory (PPC32 only)
Specify the boundary's size to align branches
Specify types of branches to align
Align doubles to two words in structs (x86 only)
Link stack frames through backchain on System Z
Enforce targets of indirect branches and function returns
Align selected branches (fused, jcc, jmp) within 32-byte boundary
Equivalent to -mcmodel=medium, compatible with RISC-V gcc.
Equivalent to -mcmodel=small, compatible with RISC-V gcc.
Allow use of CMSE (Armv8-M Security Extensions)
Enable code object v3 (AMDGPU only)
Allow use of CRC instructions (ARM/Mips only)
CU wavefront execution mode is used (AMDGPU only)
Force double to be 32 bits or 64 bits
Write a depfile containing user and system headers
Set EABI type, e.g. 4, 5 or gnu (default depends on triple)
Place constants in the .rodata section instead of the .sdata section even if they meet the -G <size> threshold (MIPS)
Enable use of experimental RISC-V extensions.
Execution model (WebAssembly only)
Disallow generation of data access to code sections (ARM only)
Assume that externally defined data is in the small data if it meets the -G <size> threshold (MIPS)
Insert calls to fentry at function entry (x86/SystemZ only)

-mfix-cortex-a53-835769 Workaround Cortex-A53 erratum 835769 (AArch64 only)

Use 32-bit floating point registers (MIPS only)
Use 64-bit floating point registers (MIPS only)
Write depfile output from -MMD, -MD, -MM, or -M to <file>
Generate code which only uses the general purpose registers (AArch64 only)
Enable merging of globals
Use GP relative accesses for symbols known to be in a small data section (MIPS)
Add missing headers to depfile
Select straight-line speculation hardening scope
Set Hexagon Vector Length
Enable Hexagon Vector eXtensions
Enable Hexagon Vector eXtensions
Use Intel MCU ABI
Run the migrator
(integrated-as) Emit an object file which can be used with an incremental linker

-mindirect-jump=<value> Change indirect jump instructions to inhibit speculation

Set iOS deployment target
Write a compilation database entry per input
Additional arguments to forward to LLVM's option processing
Extend the -G behaviour to object local data (MIPS)
Generate branches with extended addressability, usually via indirect jumps.
Force long double to be 128 bits
Force long double to be 64 bits
Force long double to be 80 bits, padded to 128 bits for storage
Enable only control-flow mitigations for Load Value Injection (LVI)
Enable all mitigations for Load Value Injection (LVI)
Set Mac OS X deployment target
Enable the generation of 4-operand madd.s, madd.d and related instructions.
Write a depfile containing user headers
Enable generation of memop instructions
Set the default structure layout to be compatible with the Microsoft compiler standard
Enable MSA ASE (MIPS only)
Enable MT ASE (MIPS only)
Like -MMD, but also implies -E and writes to stdout by default
Disable SVR4-style position-independent code (Mips only)
Disable code object v3 (AMDGPU only)
Disallow use of CRC instructions (Mips only)
WGP wavefront execution mode is used (AMDGPU only)
Do not place constants in the .rodata section instead of the .sdata if they meet the -G <size> threshold (MIPS)
Allow generation of data access to code sections (ARM only)
Do not assume that externally defined data is in the small data if it meets the -G <size> threshold (MIPS)
Don't workaround Cortex-A53 erratum 835769 (AArch64 only)
Disable merging of globals
Do not use GP relative accesses for symbols known to be in a small data section (MIPS)
Disable Hexagon Vector eXtensions
Don't generate implicit floating point instructions
(integrated-as) Emit an object file which cannot be used with an incremental linker
Do not extend the -G behaviour to object local data (MIPS)
Restore the default behaviour of not generating long calls
Disable control-flow mitigations for Load Value Injection (LVI)
Disable mitigations for Load Value Injection (LVI)
Disable the generation of 4-operand madd.s, madd.d and related instructions.
Disable generation of memop instructions
Disallow use of movt/movw pairs (ARM only)
Do not set the default structure layout to be compatible with the Microsoft compiler standard
Disable MSA ASE (MIPS only)
Disable MT ASE (MIPS only)
Disallow converting instructions with negative immediates to their negation or inversion.
Disable generation of new-value jumps
Disable generation of new-value stores
Disable function outlining (AArch64 only)
Disable generation of instruction packets
Disable linker relaxation
Allow generation of deprecated IT blocks for ARMv8. It is off by default for ARMv8 Thumb mode
Disable using library calls for save and restore
Disable speculative execution side effect suppression (SESES)
Disable SRAM ECC (AMDGPU only)
Disable stack probes which are enabled by default
Disable direct TLS access through segment registers
Force all memory accesses to be aligned (AArch32/AArch64 only)
Wavefront size 32 is used
Disable XNACK (AMDGPU only)
Disallow use of CRC instructions (ARM only)
Generate mcount/__fentry__ calls as nops. To activate they need to be patched in.
Enable generation of new-value jumps
Enable generation of new-value stores
Directory to dump module dependencies to
Provide information about a particular module file
Omit frame pointer setup for leaf functions
Enable function outlining (AArch64 only)
Use packed stack layout (SystemZ only).
Enable generation of instruction packets
Specify maximum number of prefixes to use for padding
Use copy relocations support for PIE builds
Specifies preferred vector width for auto-vectorization. Defaults to 'none' which allows target specific decisions.
Create phony target for each dependency (other than main file)
Enable hexagon-qdsp6 backward compatibility
Specify name of main file output to quote in depfile
Generate a __mcount_loc section entry for each __fentry__ call.
(integrated-as) Relax all machine instructions
Enable linker relaxation
Disallow generation of deprecated IT blocks for ARMv8. It is on by default for ARMv8 Thumb mode.
Make StdCall calling convention the default
Enable using library calls for save and restore
Enable speculative execution side effect suppression (SESES). Includes LVI control flow integrity mitigations
Select return address signing scope
Put global and static data smaller than the limit into a special section
Use software floating point
Enable SRAM ECC (AMDGPU only)
Set the stack alignment
Enable stack probes
Set the stack probe size
Force realign the stack at entry to every function
Return small structs in registers (PPC32 only)
The thread model to use, e.g. posix, single (posix by default)
Enable direct TLS access through segment registers (default)
Specify bit size of immediate TLS offsets (AArch64 ELF only): 12 (for 4KB) | 24 (for 16MB, default) | 32 (for 4GB) | 48 (for 256TB, needs -mcmodel=large)
Thread pointer access method (AArch32/AArch64 only)
Accepted for compatibility with GCC. Currently has no effect.
Specify name of main file output in depfile
Allow memory accesses to be unaligned (AArch32/AArch64 only)
Use NMake/Jom format for the depfile
Wavefront size 64 is used
Enable XNACK (AMDGPU only)
Like -MD, but also implies -E and writes to stdout by default
Do not include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once.

--no-cuda-version-check Don't error out if the detected version of the CUDA install is too low for the requested CUDA gpu architecture.

Remove CUDA/HIP offloading device architecture (e.g. sm_35, gfx906) from the list of devices to compile for. 'all' resets the list to its default value.
Treat all #include paths starting with <prefix> as not including a system header.
Disable builtin #include directories
Do not link device library for CUDA/HIP device compilation
Disable standard #include directories for the C++ standard library
Treat source input files as Objective-C++ inputs

-objcmt-atomic-property Make migration to 'atomic' properties

Enable migration to modern ObjC
Enable migration to property and method annotations
Enable migration to infer NS_DESIGNATED_INITIALIZER for initializer methods
Enable migration to infer instancetype for method result type
Enable migration to modern ObjC literals
Enable migration to NS_ENUM/NS_OPTIONS macros
Enable migration of setter/getter messages to property-dot syntax
Enable migration to modern ObjC property
Enable migration to add protocol conformance on classes
Enable migration to modern ObjC readonly property
Enable migration to modern ObjC readwrite property
Enable migration to modern ObjC subscripting
Enable migration to use NS_NONATOMIC_IOSONLY macro for setting property's 'atomic' attribute
Enable migration to annotate property with NS_RETURNS_INNER_POINTER
Only modify files with a filename contained in the provided directory path
Treat source input files as Objective-C inputs
CUDA/HIP offloading device architecture (e.g. sm_35, gfx906). May be specified more than once.
Write output to <file>
Enable mcount instrumentation
Use pipes between commands, when possible
Only precompile the input

-print-effective-triple Print the effective target triple

-print-file-name=<file> Print the full library path of <file>

Enable Objective-C Ivar layout bitmap print trace

-print-libgcc-file-name Print the library path for the currently used compiler runtime library ("libgcc.a" or "libclang_rt.builtins.*.a")

-print-prog-name=<name> Print the full program path of <name>

Print the resource directory pathname
Print the paths used for finding libraries and programs
Print supported cpu models for the given target (if target is not specified, it will print the supported cpus for the default target)
Print the normalized target triple
Print the registered targets
Support POSIX threads in generated code
Path to ptxas (used for compiling CUDA code)
Disable linemarker output in -E mode
Do not emit metadata containing compiler name and version
Don't emit warning for unused driver arguments
Emit metadata containing compiler name and version
Whether to build a relocatable precompiled header
Rewrite Legacy Objective-C source to C++
Rewrite Objective-C source to C++
ROCm device library path. Alternative to rocm-path.
ROCm installation path, used for finding and automatically linking required bitcode libraries.

-Rpass-analysis=<value> Report transformation analysis from optimization passes whose name matches the given POSIX regular expression

Report missed transformations by optimization passes whose name matches the given POSIX regular expression
Report transformations performed by optimization passes whose name matches the given POSIX regular expression
Compiler runtime library to use
Enable the specified remark
Save llvm statistics.
Save llvm statistics.
Save intermediate compilation results.
Save intermediate compilation results
Serialize compiler diagnostics to a file
Dynamically link the sanitizer runtime
Statically link the sanitizer runtime
Use the static host OpenMP runtime while linking.
Language standard to compile for
Use directory as the C++ standard library include path
C++ standard library to use
SYCL language standard to compile for.
Treat all #include paths starting with <prefix> as including a system header.
Only run preprocess and compilation steps
Generate code for the given target
Set starting address of BSS to <addr>
Set starting address of DATA to <addr>
Time individual commands
Enable some traditional CPP emulation
Process trigraph sequences
Set starting address of TEXT to <addr>
Specify <script> as linker script
undef all system defines
Unwind library to use
Undefine macro <macro>
Verify the binary representation of debug output
Load and verify that a pre-compiled header file is not stale
Print version information
Show commands to run and use verbose output
Pass the comma separated arguments in <arg> to the assembler
Enable warnings for deprecated constructs and define __DEPRECATED
Pass the comma separated arguments in <arg> to the linker
Resolve file paths relative to the specified directory
Pass the comma separated arguments in <arg> to the preprocessor
Enable the specified warning
Suppress all warnings
Pass <arg> to the static analyzer
Pass <arg> to the CUDA/HIP device compilation
Pass <arg> to the CUDA/HIP host compilation
Pass <arg> to the assembler
Pass <arg> to the clang compiler
Pass <arg> to fatbinary invocation
Pass <arg> to the ptxas assembler
Pass <arg> to the linker
Pass <arg> to the target offloading toolchain identified by <triple>.
Pass <arg> to the target offloading toolchain.
Pass <arg> to the preprocessor
Treat subsequent input files as having type <language>
Pass -z <arg> to the linker

CastXML project maintained and supported by Kitware (kitware.com).

Debian clang version 11.0.0-5+b1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir:

December 2020 castxml version 0.3.6