Home | History | Annotate | Download | only in Lex

Lines Matching refs:Namespace

26 using namespace clang;
65 "A handler with this name is already registered in this namespace");
73 "Handler not registered in this namespace");
80 // Read the 'namespace' that the directive is in, e.g. STDC. Do not macro
114 // Invoke the first level of pragma handlers which reads the namespace id.
124 namespace {
724 /// If 'Namespace' is non-null, then it is a token required to exist on the
726 void Preprocessor::AddPragmaHandler(StringRef Namespace,
730 // If this is specified to be in a namespace, step down into it.
731 if (!Namespace.empty()) {
732 // If there is already a pragma handler with the name of this namespace,
733 // we either have an error (directive with the same name as a namespace) or
734 // we already have the namespace to insert into.
735 if (PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace)) {
737 assert(InsertNS != 0 && "Cannot have a pragma namespace and pragma"
740 // Otherwise, this namespace doesn't exist yet, create and insert the
742 InsertNS = new PragmaNamespace(Namespace);
754 /// preprocessor. If \arg Namespace is non-null, then it should be the
755 /// namespace that \arg Handler was added to. It is an error to remove
757 void Preprocessor::RemovePragmaHandler(StringRef Namespace,
761 // If this is specified to be in a namespace, step down into it.
762 if (!Namespace.empty()) {
763 PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace);
764 assert(Existing && "Namespace containing handler does not exist!");
767 assert(NS && "Invalid namespace, registered as a regular pragma handler!");
772 // If this is a non-default namespace and it is now empty, remove
807 namespace {
937 const char *Namespace;
940 PragmaHandler("diagnostic"), Namespace(NS) {}
966 Callbacks->PragmaDiagnosticPop(DiagLoc, Namespace);
971 Callbacks->PragmaDiagnosticPush(DiagLoc, Namespace);
1002 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, Map, WarningName);
1031 const StringRef Namespace;
1048 StringRef Namespace = StringRef())
1049 : PragmaHandler(PragmaKind(Kind, true)), Kind(Kind), Namespace(Namespace) {}
1096 Callbacks->PragmaMessage(MessageLoc, Namespace, Kind, MessageString);
1234 } // end anonymous namespace