How do I get to all of the command line options described inside of clang?


razeh

When I look through the LLVM and clang code base I see all sorts of command line options that I can't seem to get to. For example, inside of AliasAnalysisCounter.cpp I see:

static cl::opt<bool>
PrintAll("count-aa-print-all-queries", cl::ReallyHidden, cl::init(true));
static cl::opt<bool>
PrintAllFailures("count-aa-print-all-failed-queries", cl::ReallyHidden);

When I try to get at them from the command line:

~ robertzeh$ clang++ -count-aa-print-all-failed-queries foo.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: argument unused during compilation: '-count-aa-print-all-failed-queries'

The clang version reports:

~ robertzeh$ clang++ --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0

What am I doing wrong or misunderstanding?

Anton Korobeynikov

You cannot access the options defined in various transformation passes directly. Try doingclang++ -mllvm -count-aa-print-all-failed-queries foo.c

Related


How can I get all command line options described in clang?

Lazer When I browse the LLVM and clang codebases, I see various command line options that I can't seem to see. For example, inside AliasAnalysisCounter.cpp I see: static cl::opt<bool> PrintAll("count-aa-print-all-queries", cl::ReallyHidden, cl::init(true)); st

How can I get all command line options described in clang?

Lazer When I browse the LLVM and clang codebases, I see various command line options that I can't seem to see. For example, inside AliasAnalysisCounter.cpp I see: static cl::opt<bool> PrintAll("count-aa-print-all-queries", cl::ReallyHidden, cl::init(true)); st

How do I get C:/ on the command line

username I am on Windows 10. I'm trying to load Adobe Dreamweaver extension via command line on Windows. I want to navigate to C:\Program Files\Adobe\Adobe Extension Manager CSx\ I am following the instructions here . If I select command prompt (admin), I getC

How do I get C:/ on the command line

username I am on Windows 10. I'm trying to load Adobe Dreamweaver extension via command line on Windows. I want to navigate to C:\Program Files\Adobe\Adobe Extension Manager CSx\ I am following the instructions here . If I select command prompt (admin), I getC

Get command line options

C mouse I want to parse command line options with a specific format for getting the value. The function is as follows char* getCmdOption(char** begin, char** end, const std::string& option) { char** itr = std::find(be

Get command line options

C mouse I want to parse command line options with a specific format for getting the value. The function is as follows char* getCmdOption(char** begin, char** end, const std::string& option) { char** itr = std::find(be

Get command line options

C mouse I want to parse command line options with a specific format for getting the value. The function is as follows char* getCmdOption(char** begin, char** end, const std::string& option) { char** itr = std::find(be

Get command line options

C mouse I want to parse command line options with a specific format for getting the value. The function is as follows char* getCmdOption(char** begin, char** end, const std::string& option) { char** itr = std::find(be

Get command line options

C mouse I want to parse command line options with a specific format for getting the value. The function is as follows char* getCmdOption(char** begin, char** end, const std::string& option) { char** itr = std::find(be

How can I get a list of all open windows in the command line?

Change How can I generate a list of all open windows, including dialogs and duplicates, from the command line? Lucas You can use wmctrl to get a list of all open windows. You first need to install it. sudo apt install wmctrl Then you can run the command. wmct

How can I get a list of all open windows in the command line?

Change How can I generate a list of all open windows, including dialogs and duplicates, from the command line? Lucas You can use wmctrl to get a list of all open windows. You first need to install it. sudo apt install wmctrl Then you can run the command. wmct

How can I get a list of all open windows in the command line?

Change How can I generate a list of all open windows, including dialogs and duplicates, from the command line? Lucas You can use wmctrl to get a list of all open windows. You first need to install it. sudo apt install wmctrl Then you can run the command. wmct

How can I get a list of all open windows in the command line?

Change How can I generate a list of all open windows, including dialogs and duplicates, from the command line? Lucas You can use wmctrl to get a list of all open windows. You first need to install it. sudo apt install wmctrl Then you can run the command. wmct

How do I get the command line that starts the process

velvet: From Java, is it possible to get the full command line with all the arguments to start the application? System.getEnv()and System.getProperties()doesn't seem to contain these values. Stephen Denne: Some of these are available from RuntimeMXBean by call

How do I get the Windows version using the command line?

Yoder If I am in CMDI can usewinver I can see my OS version is 20H2now. But this is GUI result and I want to use command line to make it. if i use ver Microsoft Windows [Version 10.0.19042.868] If I'm in powershell, I can use Get-ComputerInfo WindowsVersion

How do I get the command line that starts the process

velvet: From Java, is it possible to get the full command line with all the arguments to start the application? System.getEnv()and System.getProperties()doesn't seem to contain these values. Stephen Denne: Some of these are available from RuntimeMXBean by call

How do I get Cj to send newlines in the tmux command line?

Sam I'm already a big fan of using C-jinstead of <ENTER>sending newlines. Unfortunately, in the tmux command line ( which is invoked by prefix-:default ) C-j, even set -gw status-keys emacsputting in does nothing ~/.tmux.conf. (Note that it C-jsends newlines f

How do I get the command line that starts the process

velvet: From Java, is it possible to get the full command line with all the arguments to start the application? System.getEnv()and System.getProperties()doesn't seem to contain these values. Stephen Denne: Some of these are available from RuntimeMXBean by call

How do I get Cj to send newlines in the tmux command line?

Sam I'm already a big fan of using C-jinstead of <ENTER>sending newlines. Unfortunately, in the tmux command line ( which is invoked by prefix-:default ) C-j, even set -gw status-keys emacsputting in does nothing ~/.tmux.conf. (Note that it C-jsends newlines f

How do I specify options for a command?

TechPro424 I want to specify options for my command in Discord.js. How do I do this? Order: module.exports = { name: 'gifsearch', description: 'Returns a gif based on your search term.', options: [{ name: 'type',

How do I get the path to clang when clang runs the linker?

Jon Belanger I'm using LLVM 8.0 and clang, and doing some work during optimization, I need to get the path to clang. I'm running clang with that -fltoflag so that clang actually calls the linker and eventually my code. I am doing this on Ubuntu 16.04. I'm tryi

How do I get the path to clang when clang runs the linker?

Jon Belanger I'm using LLVM 8.0 and clang, and doing some work during optimization, I need to get the path to clang. I'm running clang with that -fltoflag so that clang actually calls the linker and eventually my code. I am doing this on Ubuntu 16.04. I'm tryi