================
@@ -227,6 +227,14 @@ ANALYZER_OPTION(
"the number of nondeterministic diagnostics than "
"\"crosscheck-with-z3-timeout-threshold\" in practice.", 3)
+ANALYZER_OPTION(
+ StringRef, UnityBuildFileExtensions, "unitybuild-file-extensions",
+ "Semicolon-separated file extensions (including leading dots, e.g. "
+ "'.cpp;.impl;.c') of included files whose functions are considered "
+ "analysis entry points, regardless of the including file's name. "
+ "Empty by default.",
----------------
necto wrote:
> but there is a double space that should be removed
removed
<img width="1031" height="351" alt="image"
src="https://github.com/user-attachments/assets/bc66af1b-4194-45cc-a592-68bae614b8f1"
/>
> So in the hardcoded case we were using:
>
> ```
> .Cases({"c", "m", "mm", "C", "cc", "cp"}, true)
> .Cases({"cpp", "CPP", "c++", "cxx", "cppm"}, true)
> ```
>
> Should we be less conservative and add at least some of these as the default?
I would separate the two changes. For us downstream the default change does not
change a thing since we are already initializing it to a similar list of
extensions. Yet, I imagine turning it ON by default might break someone else's
workflow, so that would be a more disruptive change that I am not prepared to
handle now.
> Should we also advertise this in the docs somewhere so that users would find
> it? Along with the release notes?
Makes sense
d6809cdd1c00 Document the option in user docs and mention it in release notes
https://github.com/llvm/llvm-project/pull/242339
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits