.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH CLANG-QUERY "1" "March 2018" "clang-query 6.0" "User Commands" .SH NAME clang-query \- manual page for clang-query 6.0 .SH DESCRIPTION USAGE: clang\-query [options] [... ] .PP OPTIONS: .PP Generic Options: .HP \fB\-help\fR \- Display available options (\fB\-help\-hidden\fR for more) .HP \fB\-help\-list\fR \- Display list of available options (\fB\-help\-list\-hidden\fR for more) .HP \fB\-version\fR \- Display the version of this program .PP clang\-query options: .HP \fB\-c=\fR \- Specify command to run .HP \fB\-extra\-arg=\fR \- Additional argument to append to the compiler command line .HP \fB\-extra\-arg\-before=\fR \- Additional argument to prepend to the compiler command line .HP \fB\-f=\fR \- Read commands from file .HP \fB\-p=\fR \- Build path .PP \fB\-p\fR is used to read a compile command database. .IP For example, it can be a CMake build directory in which a file named compile_commands.json exists (use \fB\-DCMAKE_EXPORT_COMPILE_COMMANDS\fR=\fI\,ON\/\fR CMake option to get this output). When no build path is specified, a search for compile_commands.json will be attempted through all parent paths of the first input file . See: http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html for an example of setting up Clang Tooling on a source tree. .PP ... specify the paths of source files. These paths are .IP looked up in the compile command database. If the path of a file is absolute, it needs to point into CMake's source tree. If the path is relative, the current working directory needs to be in the CMake source tree and the file must be in a subdirectory of the current working directory. "./" prefixes in the relative files will be automatically removed, but the rest of a relative path must be a suffix of a path in the compile command database. .SH "SEE ALSO" The full documentation for .B clang-query is maintained as a Texinfo manual. If the .B info and .B clang-query programs are properly installed at your site, the command .IP .B info clang-query .PP should give you access to the complete manual.