reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaDecl.cpp
 2726     SuitableSpelling =
 2728   if (SuitableSpelling.empty() && S.getLangOpts().CPlusPlus11)
 2729     SuitableSpelling = S.PP.getLastMacroWithSpelling(
 2735   if (SuitableSpelling.empty())
 2736     SuitableSpelling = S.PP.getLastMacroWithSpelling(
 2741   if (SuitableSpelling.empty() && S.getLangOpts().CPlusPlus2a)
 2742     SuitableSpelling = "constinit";
 2743   if (SuitableSpelling.empty() && S.getLangOpts().CPlusPlus11)
 2744     SuitableSpelling = "[[clang::require_constant_initialization]]";
 2745   if (SuitableSpelling.empty())
 2746     SuitableSpelling = "__attribute__((require_constant_initialization))";
 2747   SuitableSpelling += " ";
 2754         << InitDecl << FixItHint::CreateInsertion(InsertLoc, SuitableSpelling);
 2765         << FixItHint::CreateInsertion(InsertLoc, SuitableSpelling);