diff options
author | JOSTAR <52376093+shenjunjiekoda@users.noreply.github.com> | 2024-05-13 22:32:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 16:32:46 +0200 |
commit | 96ebed7c7481bb143c9d3db5f4c128bb32545229 (patch) | |
tree | 1adb6fe1732812c3831102a9f022958b3d52aebe | |
parent | ca051dfe9f0996e7fdad8fde5817e5b6ce758ab9 (diff) | |
download | llvm-96ebed7c7481bb143c9d3db5f4c128bb32545229.zip llvm-96ebed7c7481bb143c9d3db5f4c128bb32545229.tar.gz llvm-96ebed7c7481bb143c9d3db5f4c128bb32545229.tar.bz2 |
[analyzer][NFC] Move `CTUPhase1InliningMode` option to String analyzer options category (#91932)
The `CTUPhase1InliningMode`option was originally placed under Unsigned
analyzer options, but its value is a string.
This move aligns the option with its actual type.
-rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def b/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def index 2fc825c..f008c9c 100644 --- a/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def +++ b/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def @@ -414,22 +414,6 @@ ANALYZER_OPTION( "serves as an upper bound instead.", 10000) ANALYZER_OPTION( - StringRef, CTUPhase1InliningMode, "ctu-phase1-inlining", - "Controls which functions will be inlined during the first phase of the ctu " - "analysis. " - "If the value is set to 'all' then all foreign functions are inlinied " - "immediately during the first phase, thus rendering the second phase a noop. " - "The 'ctu-max-nodes-*' budge has no effect in this case. " - "If the value is 'small' then only functions with a linear CFG and with a " - "limited number of statements would be inlined during the first phase. The " - "long and/or nontrivial functions are handled in the second phase and are " - "controlled by the 'ctu-max-nodes-*' budge. " - "The value 'none' means that all foreign functions are inlined only in the " - "second phase, 'ctu-max-nodes-*' budge limits the second phase. " - "Value: \"none\", \"small\", \"all\".", - "small") - -ANALYZER_OPTION( unsigned, RegionStoreSmallStructLimit, "region-store-small-struct-limit", "The largest number of fields a struct can have and still be considered " "small. This is currently used to decide whether or not it is worth forcing " @@ -479,6 +463,22 @@ ANALYZER_OPTION( "") ANALYZER_OPTION( + StringRef, CTUPhase1InliningMode, "ctu-phase1-inlining", + "Controls which functions will be inlined during the first phase of the ctu " + "analysis. " + "If the value is set to 'all' then all foreign functions are inlinied " + "immediately during the first phase, thus rendering the second phase a noop. " + "The 'ctu-max-nodes-*' budge has no effect in this case. " + "If the value is 'small' then only functions with a linear CFG and with a " + "limited number of statements would be inlined during the first phase. The " + "long and/or nontrivial functions are handled in the second phase and are " + "controlled by the 'ctu-max-nodes-*' budge. " + "The value 'none' means that all foreign functions are inlined only in the " + "second phase, 'ctu-max-nodes-*' budge limits the second phase. " + "Value: \"none\", \"small\", \"all\".", + "small") + +ANALYZER_OPTION( StringRef, CXXMemberInliningMode, "c++-inlining", "Controls which C++ member functions will be considered for inlining. " "Value: \"constructors\", \"destructors\", \"methods\".", |