mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 01:04:49 +08:00
[clang] Document -Wglobal-constructors behavior (#68084)
It's a drop in the ocean considering the lack of documentation of our diagnostics, but it's a start. Co-authored-by: serge-sans-paille <sguelton@mozilla.com>
This commit is contained in:
committed by
GitHub
parent
543f9e7810
commit
a8a6b66a26
@@ -415,7 +415,11 @@ def : DiagGroup<"c++2a-compat-pedantic", [CXX20CompatPedantic]>;
|
||||
def ExitTimeDestructors : DiagGroup<"exit-time-destructors">;
|
||||
def FlexibleArrayExtensions : DiagGroup<"flexible-array-extensions">;
|
||||
def FourByteMultiChar : DiagGroup<"four-char-constants">;
|
||||
def GlobalConstructors : DiagGroup<"global-constructors">;
|
||||
def GlobalConstructors : DiagGroup<"global-constructors"> {
|
||||
code Documentation = [{
|
||||
Emit a warning for each variable declaration that generates code run at startup.
|
||||
}];
|
||||
}
|
||||
def BitwiseConditionalParentheses: DiagGroup<"bitwise-conditional-parentheses">;
|
||||
def BitwiseOpParentheses: DiagGroup<"bitwise-op-parentheses">;
|
||||
def LogicalOpParentheses: DiagGroup<"logical-op-parentheses">;
|
||||
|
||||
Reference in New Issue
Block a user