Home
last modified time | relevance | path

Searched refs:WarningName (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Lex/
DPragma.cpp994 std::string WarningName; in HandlePragma() local
995 if (!PP.FinishLexStringLiteral(Tok, WarningName, "pragma diagnostic", in HandlePragma()
1004 if (WarningName.size() < 3 || WarningName[0] != '-' || in HandlePragma()
1005 (WarningName[1] != 'W' && WarningName[1] != 'R')) { in HandlePragma()
1011 WarningName[1] == 'W' ? diag::Flavor::WarningOrError in HandlePragma()
1013 WarningName.substr(2), SV, DiagLoc)) in HandlePragma()
1015 << WarningName; in HandlePragma()
1017 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, SV, WarningName); in HandlePragma()
DPPMacroExpansion.cpp1697 std::string WarningName; in ExpandBuiltinMacro() local
1699 if (!FinishLexStringLiteral(Tok, WarningName, "'__has_warning'", in ExpandBuiltinMacro()
1716 if (WarningName.size() < 3 || WarningName[0] != '-' || in ExpandBuiltinMacro()
1717 WarningName[1] != 'W') { in ExpandBuiltinMacro()
1729 WarningName.substr(2), Diags); in ExpandBuiltinMacro()