<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61859>61859</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
how to get -fparse-all-comments working?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Leon-Zhang
</td>
</tr>
</table>
<pre>
I am using following code to create command option parser:
const char* argv[]={"DevToolsd.exe",pcszFirstSrcFile,"-save-stats",
"-fparse-all-comments", "--",
//"-Wdocumentation",
//Include directories
"-Ixxxx",
"-x", strLang.CStr(),
"-std",strLangStd.CStr()
};
int argc=_ARRAY_ELEM_COUNT(argv);
llvm::Expected<clang::tooling::CommonOptionsParser> optionsParser=
CommonOptionsParser::create(argc,argv,Category);
I have trace down to CommandLineParser::ParseCommandLineOptions method, it find arguments from llvm::cl::TopLevelSubCommand global variable, which its OptionMap member variable content as follow:
```
arg:generate-merged-base-profiles
arg:opt-bisect-limit
arg:import-constants-with-refs
arg:filter-print-funcs
arg:opaque-pointers
arg:profile-summary-large-working-set-size-threshold
arg:profile-summary-cutoff-cold
arg:profile-summary-cold-count
arg:enable-fs-discriminator
arg:profile-isfs
arg:print-summary-global-ids
arg:profile-summary-contextless
arg:expand-constant-exprs
arg:remarks-section
arg:profile-summary-cutoff-hot
arg:profile-summary-hot-count
arg:non-global-value-max-name-size
arg:propagate-attrs
arg:time-passes-per-run
arg:verify-noalias-scope-decl-dom
arg:disable-bitcode-version-upgrade
arg:print-changed
arg:disable-i2p-p2i-opt
arg:disable-ondemand-mds-loading
arg:print-module-scope
arg:static-func-strip-dirname-prefix
arg:pass-remarks-analysis
arg:debug-pass
arg:time-passes
arg:print-before
arg:pass-remarks-missed
arg:print-after
arg:use-dbg-addr
arg:profile-summary-huge-working-set-size-threshold
arg:print-after-all
arg:use-dereferenceable-at-point-semantics
arg:print-before-all
arg:as-secure-log-file-name
arg:import-full-type-definitions
arg:enable-name-compression
arg:pass-remarks
arg:asm-macro-max-nesting-depth
arg:profile-symbol-list-cutoff
arg:verify-dom-info
arg:static-func-full-module-prefix
```
there is no such argument named fparse-all-comments. So my question is how I can get fparse-all-comments working? Thanks.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVltv47oR_jXyCzGGTW0ufvBD1k6AADk9xUmKon1ZUORIYpfkaMmRY--vLygpiZ04uziGIV_m_n0zHKqUbBMQ18XF1-JiO1M9txTXD0gB_tuq0MwqMof1vVBe9MmGRtTkHD3nb5oMCiahIypGocl7FYygji0F0amYMBblTbHYFovpqSkkFrpVsZA3QsVmN8Ytym1x9bWQcou7JyKXzBz3WEhZyE2n0887GxM_Rn1nHRZyU0gJSe0QEitOo9oYQGRRPcQG5RzkpDC86AxSONGfXoW8G94S_m1I99lG5TLe-c5K90G73qAwNqJmihbTe18S7vf7_f58IAmTQCSODyo0880jx0JeF3J1Vj2xGQ0m_Uc2xyan-lOmV9ui_PomsoEz2root99u_vrr5j_fbh9u__i2-fNf_3gq5PVAhFy9mTi385m68uZ236FmNEW50U6FZvyXiZx9-bEh7yn8OdCe_jnRfjv1wesf28n1We3sZmyjMRtdyM2Y1GajGBuKh-P8xue9aNUOBUelURh6DrkZN2MXPtiAx86H70eyKb7wyC2ZTIZlUdtgMkwD_UnUkfwREtqNn0_UPeAO3WNfTQ5F46hSTuxUtKoaOlQ8t1a3wnISY6g_VCc8-grjq5rQFBgzM2maqrdpuVxM7-GnihnqBgNGxQgeY4MGKpUQuki1dS8tOCpSx1DZhJrBWW_5WGZ9R5FhGEQVOMGz5RYi1iceausYI3TRBoa6D_qdf_WjR-jIBsZ4IprSgdR7r-IBnIoNwjPF7zY0kJAh2Z8I3EZMLTnzK1vdM9U16N-pkTOgqQ8ndWLIEEOdwNiko_U2KKZ4zpFN9bsactUv7kduwZpf1jlQuWeH6UQN950K5hVtwH13ildEr-L3BJmsfNz8Ho6W-FdaLfFHMAKFlzp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