Home
last modified time | relevance | path

Searched refs:isExternC (Results 1 – 25 of 41) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecOpenCheck.cpp22 functionDecl(isExternC(), returns(isInteger()), in registerMatchers()
27 functionDecl(isExternC(), returns(isInteger()), in registerMatchers()
DCloexecSocketCheck.cpp21 functionDecl(isExternC(), returns(isInteger()), in registerMatchers()
DCloexecFopenCheck.cpp24 functionDecl(isExternC(), returns(asString("FILE *")), in registerMatchers()
DCloexecCreatCheck.cpp23 functionDecl(isExternC(), returns(isInteger()), in registerMatchers()
DCloexecCheck.cpp48 callee(functionDecl(isExternC(), Function).bind(FuncDeclBindingStr))) in registerMatchersImpl()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DAvoidCArraysCheck.cpp49 hasParent(varDecl(isExternC())), in registerMatchers()
52 hasAncestor(functionDecl(isExternC()))))) in registerMatchers()
DRedundantVoidArgCheck.cpp48 unless(isInstantiated()), unless(isExternC())) in registerMatchers()
/external/clang/lib/AST/
DMangle.cpp59 static bool isExternC(const NamedDecl *ND) { in isExternC() function
61 return FD->isExternC(); in isExternC()
62 return cast<VarDecl>(ND)->isExternC(); in isExternC()
74 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) && in getCallingConvMangling()
DDecl.cpp1896 bool VarDecl::isExternC() const { in isExternC() function in VarDecl
2623 bool FunctionDecl::isExternC() const { in isExternC() function in FunctionDecl
3412 if (isExternC()) { in getMemoryFunctionKind()
DItaniumMangle.cpp75 if (VD->isExternC()) in getEffectiveDeclContext()
79 if (FD->isExternC()) in getEffectiveDeclContext()
598 if (VD->isExternC()) in shouldMangleCXXName()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DVariadicFunctionDefCheck.cpp23 functionDecl(isDefinition(), isVariadic(), unless(isExternC())) in registerMatchers()
/external/llvm-project/clang/lib/AST/
DMangle.cpp58 static bool isExternC(const NamedDecl *ND) { in isExternC() function
60 return FD->isExternC(); in isExternC()
62 return VD->isExternC(); in isExternC()
83 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) && in getCallingConvMangling()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp1261 EXPECT_TRUE(matches("extern \"C\" void f() {}", functionDecl(isExternC()))); in TEST_P()
1263 matches("extern \"C\" { void f() {} }", functionDecl(isExternC()))); in TEST_P()
1264 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC()))); in TEST_P()
1272 EXPECT_TRUE(matches("extern \"C\" int i;", varDecl(isExternC()))); in TEST_P()
1273 EXPECT_TRUE(matches("extern \"C\" { int i; }", varDecl(isExternC()))); in TEST_P()
1274 EXPECT_TRUE(notMatches("int i;", varDecl(isExternC()))); in TEST_P()
/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp839 EXPECT_TRUE(matches("extern \"C\" void f() {}", functionDecl(isExternC()))); in TEST()
841 functionDecl(isExternC()))); in TEST()
842 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC()))); in TEST()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp302 REGISTER_MATCHER(isExternC); in RegistryMaps()
/external/clang/lib/StaticAnalyzer/Checkers/
DGenericTaintChecker.cpp597 if ((D->getName().find("stdin") != StringRef::npos) && D->isExternC()) in isStdin()
/external/clang/lib/Index/
DUSRGeneration.cpp221 if ((!Ctx.getLangOpts().CPlusPlus || D->isExternC()) && in VisitFunctionDecl()
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp393 REGISTER_MATCHER(isExternC); in RegistryMaps()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DGenericTaintChecker.cpp780 if ((D->getName().find("stdin") != StringRef::npos) && D->isExternC()) { in isStdin()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h3300 AST_MATCHER(FunctionDecl, isExternC) { in AST_MATCHER() argument
3301 return Node.isExternC(); in AST_MATCHER()
/external/clang/lib/Sema/
DSemaDecl.cpp2671 template<typename T> static bool isExternC(T *D) { return D->isExternC(); } in isExternC() function
2672 static bool isExternC(VarTemplateDecl *) { return false; } in isExternC() function
2701 !(isExternC(Old) && isExternC(New))) in checkUsingShadowRedecl()
5765 return D->isExternC(); in isIncompleteDeclExternC()
5841 return FD->isExternC(); in isDeclExternC()
5843 return VD->isExternC(); in isDeclExternC()
6568 if (shadowedVar->isExternC()) { in CheckShadow()
8549 !(II && II->isStr("printf") && NewFD->isExternC() && in ActOnFunctionDeclarator()
8891 if (Previous.empty() && NewFD->isExternC()) { in CheckFunctionDeclaration()
9911 VDecl->isExternC())) && in AddInitializerToDecl()
[all …]
DSemaExceptionSpec.cpp266 Old->isExternC()) { in CheckEquivalentExceptionSpec()
/external/llvm-project/clang/lib/Index/
DUSRGeneration.cpp245 if ((!Ctx.getLangOpts().CPlusPlus || D->isExternC()) && in VisitFunctionDecl()
/external/llvm-project/clang/lib/Sema/
DSemaDecl.cpp3101 template<typename T> static bool isExternC(T *D) { return D->isExternC(); } in isExternC() function
3102 static bool isExternC(VarTemplateDecl *) { return false; } in isExternC() function
3131 !(isExternC(Old) && isExternC(New))) in checkUsingShadowRedecl()
6643 return D->isExternC(); in isIncompleteDeclExternC()
6714 return FD->isExternC(); in isDeclExternC()
6716 return VD->isExternC(); in isDeclExternC()
7581 if (shadowedVar->isExternC()) { in CheckShadow()
9795 !(II && II->isStr("printf") && NewFD->isExternC() && in ActOnFunctionDeclarator()
10236 if (!CLinkageMayDiffer && OldFD->isExternC() != NewFD->isExternC()) in areMultiversionVariantFunctionsCompatible()
10941 if (Previous.empty() && NewFD->isExternC()) { in CheckFunctionDeclaration()
[all …]
DSema.cpp685 return FD->isExternC(); in isFunctionOrVarDeclExternC()
686 return cast<VarDecl>(ND)->isExternC(); in isFunctionOrVarDeclExternC()

12