| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 81 (NS.getNSDictionarySelector( in rewriteObjCRedundantCallWithLiteral() 350 return rewriteToNumberLiteral(Msg, NS, commit); in rewriteToObjCLiteralSyntax() 501 if (Sel == NS.getNSDictionarySelector( in rewriteToDictionaryLiteral() 522 if (Sel == NS.getNSDictionarySelector( in rewriteToDictionaryLiteral() 559 if (Sel == NS.getNSDictionarySelector( in rewriteToDictionaryLiteral() 615 if (Sel == NS.getNSDictionarySelector( in shouldNotRewriteImmediateMessageArgs() 776 ASTContext &Ctx = NS.getASTContext(); in rewriteToNumberLiteral() 779 MKOpt = NS.getNSNumberLiteralMethodKind(Sel); in rewriteToNumberLiteral() 984 ASTContext &Ctx = NS.getASTContext(); in rewriteToNumericBoxedExpression() 987 MKOpt = NS.getNSNumberLiteralMethodKind(Sel); in rewriteToNumericBoxedExpression() [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.meaning/ |
| H A D | p1.cpp | 24 namespace NS { namespace 32 namespace NS { namespace 35 void NS::foo(); // expected-warning {{extra qualification}} 36 extern int NS::bar; // expected-warning {{extra qualification}} 39 template<typename T> void NS::wibble(T); // expected-warning {{extra qualification}} 41 void NS::foo() {} // expected-warning{{extra qualification on member 'foo'}} in foo() 42 int NS::bar; // expected-warning{{extra qualification on member 'bar'}} 43 struct NS::X { }; // expected-warning{{extra qualification on member 'X'}} 44 template<typename T> struct NS::Y { }; // expected-warning{{extra qualification on member 'Y'}} 45 …template<typename T> void NS::wibble(T) { } // expected-warning{{extra qualification on member 'wi… in wibble() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Decimal/ |
| H A D | decimal.h | 121 #define NS(x) Fortran::decimal::x macro 123 #define NS(x) x 126 struct NS(ConversionToDecimalResult) 128 int digits, enum NS(FortranRounding), float); 129 struct NS(ConversionToDecimalResult) 131 int digits, enum NS(FortranRounding), double); 132 struct NS(ConversionToDecimalResult) 136 enum NS(ConversionResultFlags) 138 enum NS(ConversionResultFlags) 140 enum NS(ConversionResultFlags) ConvertDecimalToLongDouble( [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx11-attributes-on-using-declaration.cpp | 5 namespace NS { typedef int x; } namespace 7 [[clang::annotate("foo")]] using NS::x; // expected-warning{{ISO C++ does not allow an attribute li… 10 [[deprecated]] using NS::x; // expected-warning {{'deprecated' c… 11 using NS::x [[deprecated]]; // expected-warning {{'deprecated' c… 12 using NS::x __attribute__((deprecated)); // expected-warning {{'deprecated' c… 13 using NS::x __attribute__((availability(macos,introduced=1))); // expected-warning {{'availability'… 15 [[clang::availability(macos,introduced=1)]] using NS::x; // expected-warning {{'availability' curre… 18 [[clang::annotate("A")]] using NS::x [[clang::annotate("Y")]], NS::x [[clang::annotate("Z")]];
|
| H A D | for-range-no-std.cpp | 16 namespace NS { namespace 28 NS::iter begin(NS::NoADL); // expected-note {{not viable}} 29 NS::iter end(NS::NoADL); 36 for (int b : NS::ADL()) {} // ok in f() 37 for (int b : NS::NoADL()) {} // expected-error {{invalid range expression of type 'NS::NoADL'}} in f()
|
| H A D | using-if-exists.cpp | 6 namespace NS {} namespace 8 using NS::x UIE; // expected-note{{using declaration annotated with 'using_if_exists' here}} 13 using NS::NotNS::x UIE; // expected-error{{no member named 'NotNS' in namespace 'test_basic::NS'}} 17 namespace NS {} namespace 19 using NS::x UIE; 20 using NS::x UIE; 161 namespace NS {} namespace 163 using NS::x UIE; // expected-note {{using declaration annotated with 'using_if_exists' here}} 195 namespace NS { namespace 200 using alias UIE = NS::x; // expected-error {{'using_if_exists' attribute only applies to named decl… [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | predefined-expr.cpp | 127 namespace NS { namespace 467 NS::Base b; in main() 475 b.withTemplateParameter2(NS::ClassTemplate<NS::Base *>()); in main() 486 NS::Derived d; in main() 489 NS::ClassTemplate<int> t1; in main() 491 NS::ClassTemplate<NS::Base *> t2; in main() 494 NS::Constructor c1; in main() 495 NS::Constructor c2(0); in main() 496 NS::Constructor c3((NS::Base *)0); in main() 507 NS::localClass(0); in main() [all …]
|
| H A D | debug-info-gline-tables-only.cpp | 7 namespace NS { namespace 27 NS::C c; 28 NS::D d; 29 NS::E e; 30 NS::F f;
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | using-if-exists-attr.cpp | 5 namespace NS { namespace 9 using NS::x __attribute__((using_if_exists)); 11 using NS::x [[clang::using_if_exists]]; // expected-warning{{ISO C++ does not allow an attribute li… 14 using NS::not_there, 15 NS::not_there2; 17 using NS::not_there3, // expected-error {{no member named 'not_there3' in … 18 …NS::not_there4 [[clang::using_if_exists]]; // expected-warning{{C++ does not allow an attribute li… 20 [[clang::using_if_exists]] using NS::not_there5 [[clang::using_if_exists]]; // expected-warning 2 {…
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | index-refs.cpp | 2 namespace NS { namespace 11 NS::MyInt NS::gx = EnumVal; 14 NS::MyInt x; in foo() 37 namespace NS { namespace 42 using namespace NS; 43 using namespace NS::Inn; 44 using NS::Foo;
|
| H A D | file-refs.cpp | 1 namespace NS { namespace 9 void NS::C::m() { in m() 15 NS::C c1(); in f() 16 NS::C c2 = NS::C(); in f()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/zircon/ |
| H A D | temporary-objects.cpp | 16 namespace NS { namespace 50 NS::Bar(); in main() 65 NS::Bar(0); in main() 72 namespace NS { namespace 90 make_ty<NS::Bar>(); in ty_func() 96 class Bingo : NS::Bar {}; // Not explicitly disallowed 106 Quux<NS::Bar>(); in f3()
|
| /llvm-project-15.0.7/clang/test/CXX/basic/basic.scope/basic.scope.pdecl/ |
| H A D | p3.cpp | 5 namespace NS { namespace 8 using namespace NS; 20 namespace NS { namespace 23 using namespace NS; 25 using C = NS::C; // ok, same type
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | ast-dump-expr-json.cpp | 124 namespace NS { namespace 131 NS::X x; in TestADLCall() 137 NS::X x; in TestNonADLCall() 138 NS::f(x); in TestNonADLCall() 142 NS::X x; in TestNonADLCall2() 143 using NS::f; in TestNonADLCall2() 149 using namespace NS;
|
| H A D | ast-dump-expr.cpp | 544 namespace NS { namespace 552 NS::X x; in ADLCall() 561 NS::X x; in NonADLCall() 563 NS::f(x); in NonADLCall() 568 NS::X x; in NonADLCall2() 569 using NS::f; in NonADLCall2() 577 using namespace NS;
|
| /llvm-project-15.0.7/clang/lib/Tooling/Inclusions/ |
| H A D | StandardLibrary.cpp | 28 #define SYMBOL(Name, NS, Header) ++SymCount; in initialize() argument 38 auto AddNS = [&](llvm::StringRef NS) -> NSSymbolMap & { in initialize() argument 39 auto R = NamespaceSymbols->try_emplace(NS, nullptr); in initialize() 49 auto Add = [&, SymIndex(0)](llvm::StringRef Name, llvm::StringRef NS, in initialize() 51 if (NS == "None") in initialize() 52 NS = ""; in initialize() 54 SymbolNames[SymIndex] = {NS, Name}; in initialize() 57 NSSymbolMap &NSSymbols = AddNS(NS); in initialize() 62 #define SYMBOL(Name, NS, Header) Add(#Name, #NS, #Header); in initialize() argument
|
| /llvm-project-15.0.7/lld/test/COFF/Inputs/ |
| H A D | pdb-hashes-2-missing.yaml | 77 DisplayName: 'NS::func' 117 UDTName: 'NS::Foo' 132 SymbolName: '?func@NS@@YAHABUFoo@1@@Z' 135 SymbolName: '?func@NS@@YAHABUFoo@1@@Z' 138 SymbolName: '?func@NS@@YAHABUFoo@1@@Z' 160 String: NS 166 Name: 'NS::Foo' 167 UniqueName: '.?AUFoo@NS@@' 225 Name: 'NS::Foo' 226 UniqueName: '.?AUFoo@NS@@' [all …]
|
| H A D | pdb-hashes-2.yaml | 77 DisplayName: 'NS::func' 117 UDTName: 'NS::Foo' 132 SymbolName: '?func@NS@@YAHABUFoo@1@@Z' 135 SymbolName: '?func@NS@@YAHABUFoo@1@@Z' 138 SymbolName: '?func@NS@@YAHABUFoo@1@@Z' 160 String: NS 166 Name: 'NS::Foo' 167 UniqueName: '.?AUFoo@NS@@' 225 Name: 'NS::Foo' 226 UniqueName: '.?AUFoo@NS@@' [all …]
|
| H A D | pdb-hashes-1.yaml | 12 SymbolName: '??0Foo@NS@@QAE@H@Z' 15 SymbolName: '?func@NS@@YAHABUFoo@1@@Z' 170 UDTName: 'NS::Foo' 250 Name: 'NS::Foo' 251 UniqueName: '.?AUFoo@NS@@' 291 Name: 'NS::Foo' 292 UniqueName: '.?AUFoo@NS@@' 371 DisplayName: 'NS::Foo::Foo' 419 SymbolName: '??0Foo@NS@@QAE@H@Z' 422 SymbolName: '??0Foo@NS@@QAE@H@Z' [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | DontModifyStdNamespaceCheck.cpp | 109 if (const auto *NS = dyn_cast<NamespaceDecl>(D)) in getTopLevelLexicalNamespaceDecl() local 110 LastNS = NS; in getTopLevelLexicalNamespaceDecl() 119 const auto *NS = Result.Nodes.getNodeAs<NamespaceDecl>("nmspc"); in check() local 120 if (!D || !NS) in check() 125 << NS; in check() 129 assert(NS->getCanonicalDecl() == LexNS->getCanonicalDecl() && in check()
|
| /llvm-project-15.0.7/compiler-rt/test/profile/ |
| H A D | instrprof-value-prof.c | 69 uint32_t NS; /* Number value sites. */ member 81 unsigned S, NS = 0, I, V, doInstrument = 1; in main() local 89 CallerInfos[I].NS = I; in main() 111 NS = Res->NS; in main() 113 0 /*IPVK_IndirectCallTarget */, NS); in main() 117 for (S = 0; S < NS; S++) { in main()
|
| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | no-linkage.cpp | 6 namespace NS { int n; } // expected-note {{candidate}} namespace 10 namespace RealNS = NS; // expected-note {{candidate}} 32 use(NS::n); in use_things() 47 use(NS::n); // expected-error {{ambiguous}} in use_things_again()
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | pdb-global-hashes.test | 14 ; namespace NS { 27 ; NS::Foo f(argc); 28 ; return NS::func(f); 34 ; int NS::func(const Foo &f) { 52 CHECK-NEXT: 0x1003 | LF_STRUCTURE [size = 44] `NS::Foo` 53 CHECK-NEXT: unique name: `.?AUFoo@NS@@` 68 CHECK-NEXT: 0x1008 | LF_STRUCTURE [size = 44] `NS::Foo` 69 CHECK-NEXT: unique name: `.?AUFoo@NS@@` 77 CHECK-NEXT: 0x100A: `const NS::Foo&` 91 CHECK-NEXT: 0x1004 | LF_STRING_ID [size = 12] ID: <no type>, String: NS
|
| /llvm-project-15.0.7/lldb/unittests/SymbolFile/PDB/Inputs/ |
| H A D | test-pdb-types.cpp | 30 namespace NS { namespace 48 typedef NS::NSClass NSClassTypedef; 55 static const int sizeof_NSClass = sizeof(NS::NSClass); 72 NS::NSClass c3; in main()
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | BytesOutputStyle.cpp | 202 BinarySubstreamRef NS = InfoS.getNamedStreamsBuffer(); in dumpNameMap() local 204 P.formatMsfStreamData("Named Stream Map", File, Layout, NS); in dumpNameMap() 232 BinarySubstreamRef NS = DbiS.getSectionContributionData(); in dumpSectionContributions() local 243 BinarySubstreamRef NS = DbiS.getSecMapSubstreamData(); in dumpSectionMap() local 245 P.formatMsfStreamData("Section Map", File, Layout, NS); in dumpSectionMap() 254 BinarySubstreamRef NS = DbiS.getModiSubstreamData(); in dumpModuleInfos() local 256 P.formatMsfStreamData("Module Infos", File, Layout, NS); in dumpModuleInfos() 265 BinarySubstreamRef NS = DbiS.getFileInfoSubstreamData(); in dumpFileInfo() local 267 P.formatMsfStreamData("File Info", File, Layout, NS); in dumpFileInfo() 278 P.formatMsfStreamData("Type Server Map", File, Layout, NS); in dumpTypeServerMap() [all …]
|