Lines Matching defs:Namespace
55 using namespace clang;
93 "A handler with this name is already registered in this namespace");
100 "Handler not registered in this namespace");
108 // Read the 'namespace' that the directive is in, e.g. STDC. Do not macro
130 namespace {
162 } // namespace
175 // Invoke the first level of pragma handlers which reads the namespace id.
893 /// If 'Namespace' is non-null, then it is a token required to exist on the
895 void Preprocessor::AddPragmaHandler(StringRef Namespace,
899 // If this is specified to be in a namespace, step down into it.
900 if (!Namespace.empty()) {
901 // If there is already a pragma handler with the name of this namespace,
902 // we either have an error (directive with the same name as a namespace) or
903 // we already have the namespace to insert into.
904 if (PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace)) {
906 assert(InsertNS != nullptr && "Cannot have a pragma namespace and pragma"
909 // Otherwise, this namespace doesn't exist yet, create and insert the
911 InsertNS = new PragmaNamespace(Namespace);
923 /// preprocessor. If \arg Namespace is non-null, then it should be the
924 /// namespace that \arg Handler was added to. It is an error to remove
926 void Preprocessor::RemovePragmaHandler(StringRef Namespace,
930 // If this is specified to be in a namespace, step down into it.
931 if (!Namespace.empty()) {
932 PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace);
933 assert(Existing && "Namespace containing handler does not exist!");
936 assert(NS && "Invalid namespace, registered as a regular pragma handler!");
941 // If this is a non-default namespace and it is now empty, remove it.
975 namespace {
1223 const char *Namespace;
1227 : PragmaHandler("diagnostic"), Namespace(NS) {}
1245 Callbacks->PragmaDiagnosticPop(DiagLoc, Namespace);
1250 Callbacks->PragmaDiagnosticPush(DiagLoc, Namespace);
1301 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, SV, WarningName);
1527 const StringRef Namespace;
1544 StringRef Namespace = StringRef())
1546 Namespace(Namespace) {}
1593 Callbacks->PragmaMessage(MessageLoc, Namespace, Kind, MessageString);
1910 } // namespace