Skip to content

Commit 96ebed7

Browse files
[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.
1 parent ca051df commit 96ebed7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -413,22 +413,6 @@ ANALYZER_OPTION(
413413
"analysis is too low, it is meaningful to provide a minimum value that "
414414
"serves as an upper bound instead.", 10000)
415415

416-
ANALYZER_OPTION(
417-
StringRef, CTUPhase1InliningMode, "ctu-phase1-inlining",
418-
"Controls which functions will be inlined during the first phase of the ctu "
419-
"analysis. "
420-
"If the value is set to 'all' then all foreign functions are inlinied "
421-
"immediately during the first phase, thus rendering the second phase a noop. "
422-
"The 'ctu-max-nodes-*' budge has no effect in this case. "
423-
"If the value is 'small' then only functions with a linear CFG and with a "
424-
"limited number of statements would be inlined during the first phase. The "
425-
"long and/or nontrivial functions are handled in the second phase and are "
426-
"controlled by the 'ctu-max-nodes-*' budge. "
427-
"The value 'none' means that all foreign functions are inlined only in the "
428-
"second phase, 'ctu-max-nodes-*' budge limits the second phase. "
429-
"Value: \"none\", \"small\", \"all\".",
430-
"small")
431-
432416
ANALYZER_OPTION(
433417
unsigned, RegionStoreSmallStructLimit, "region-store-small-struct-limit",
434418
"The largest number of fields a struct can have and still be considered "
@@ -478,6 +462,22 @@ ANALYZER_OPTION(
478462
"where to look for those alternative implementations (called models).",
479463
"")
480464

465+
ANALYZER_OPTION(
466+
StringRef, CTUPhase1InliningMode, "ctu-phase1-inlining",
467+
"Controls which functions will be inlined during the first phase of the ctu "
468+
"analysis. "
469+
"If the value is set to 'all' then all foreign functions are inlinied "
470+
"immediately during the first phase, thus rendering the second phase a noop. "
471+
"The 'ctu-max-nodes-*' budge has no effect in this case. "
472+
"If the value is 'small' then only functions with a linear CFG and with a "
473+
"limited number of statements would be inlined during the first phase. The "
474+
"long and/or nontrivial functions are handled in the second phase and are "
475+
"controlled by the 'ctu-max-nodes-*' budge. "
476+
"The value 'none' means that all foreign functions are inlined only in the "
477+
"second phase, 'ctu-max-nodes-*' budge limits the second phase. "
478+
"Value: \"none\", \"small\", \"all\".",
479+
"small")
480+
481481
ANALYZER_OPTION(
482482
StringRef, CXXMemberInliningMode, "c++-inlining",
483483
"Controls which C++ member functions will be considered for inlining. "

0 commit comments

Comments
 (0)