Home | History | Annotate | Download | only in Lex

Lines Matching refs:Namespace

26 using namespace clang;
66 "A handler with this name is already registered in this namespace");
74 "Handler not registered in this namespace");
81 // Read the 'namespace' that the directive is in, e.g. STDC. Do not macro
108 // Invoke the first level of pragma handlers which reads the namespace id.
118 namespace {
850 /// If 'Namespace' is non-null, then it is a token required to exist on the
852 void Preprocessor::AddPragmaHandler(StringRef Namespace,
856 // If this is specified to be in a namespace, step down into it.
857 if (!Namespace.empty()) {
858 // If there is already a pragma handler with the name of this namespace,
859 // we either have an error (directive with the same name as a namespace) or
860 // we already have the namespace to insert into.
861 if (PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace)) {
863 assert(InsertNS != 0 && "Cannot have a pragma namespace and pragma"
866 // Otherwise, this namespace doesn't exist yet, create and insert the
868 InsertNS = new PragmaNamespace(Namespace);
880 /// preprocessor. If \arg Namespace is non-null, then it should be the
881 /// namespace that \arg Handler was added to. It is an error to remove
883 void Preprocessor::RemovePragmaHandler(StringRef Namespace,
887 // If this is specified to be in a namespace, step down into it.
888 if (!Namespace.empty()) {
889 PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace);
890 assert(Existing && "Namespace containing handler does not exist!");
893 assert(NS && "Invalid namespace, registered as a regular pragma handler!");
898 // If this is a non-default namespace and it is now empty, remove
933 namespace {
1029 const char *Namespace;
1032 PragmaHandler("diagnostic"), Namespace(NS) {}
1058 Callbacks->PragmaDiagnosticPop(DiagLoc, Namespace);
1063 Callbacks->PragmaDiagnosticPush(DiagLoc, Namespace);
1116 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, Map, WarningName);
1258 } // end anonymous namespace