Home
last modified time | relevance | path

Searched refs:ParenRange (Results 1 – 20 of 20) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeCstyleCastCheck.cpp84 auto ParenRange = CharSourceRange::getTokenRange( in check() local
86 diag_builder << FixItHint::CreateReplacement(ParenRange, CastText); in check()
/external/clang/lib/Parse/
DParser.cpp109 SourceRange ParenRange) { in SuggestParentheses() argument
110 SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses()
111 if (!ParenRange.getEnd().isFileID() || EndLoc.isInvalid()) { in SuggestParentheses()
119 << FixItHint::CreateInsertion(ParenRange.getBegin(), "(") in SuggestParentheses()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DLoopConvertCheck.cpp663 SourceRange ParenRange(Loop->getLParenLoc(), Loop->getRParenLoc()); in doConversion() local
707 CharSourceRange::getTokenRange(ParenRange), Range)); in doConversion()
/external/clang/unittests/AST/
DSourceLocationTest.cpp98 TEST(CXXNewExpr, ParenRange) { in TEST() argument
/external/llvm-project/clang/lib/Parse/
DParser.cpp88 SourceRange ParenRange) { in SuggestParentheses() argument
89 SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses()
90 if (!ParenRange.getEnd().isFileID() || EndLoc.isInvalid()) { in SuggestParentheses()
98 << FixItHint::CreateInsertion(ParenRange.getBegin(), "(") in SuggestParentheses()
/external/llvm-project/clang/unittests/AST/
DSourceLocationTest.cpp153 TEST(CXXNewExpr, ParenRange) { in TEST() argument
/external/llvm-project/clang/lib/Sema/
DSemaType.cpp3608 SourceRange ParenRange(DeclType.Loc, DeclType.EndLoc); in warnAboutAmbiguousFunction() local
3613 << ParenRange; in warnAboutAmbiguousFunction()
3660 << FixItHint::CreateRemoval(ParenRange); in warnAboutAmbiguousFunction()
3663 S.getFixItZeroInitializerForType(RT, ParenRange.getBegin()); in warnAboutAmbiguousFunction()
3668 << FixItHint::CreateReplacement(ParenRange, Init); in warnAboutAmbiguousFunction()
3752 SourceRange ParenRange(Paren.Loc, Paren.EndLoc); in warnAboutRedundantParens() local
3768 << ParenRange << FixItHint::CreateRemoval(Paren.Loc) in warnAboutRedundantParens()
3774 << ParenRange << D.getIdentifier(); in warnAboutRedundantParens()
DSemaDeclCXX.cpp14989 SourceRange ParenRange) { in BuildCXXConstructExpr() argument
15014 ConstructKind, ParenRange); in BuildCXXConstructExpr()
15028 SourceRange ParenRange) { in BuildCXXConstructExpr() argument
15038 RequiresZeroInit, ConstructKind, ParenRange); in BuildCXXConstructExpr()
15053 SourceRange ParenRange) { in BuildCXXConstructExpr() argument
15071 ParenRange), in BuildCXXConstructExpr()
DSemaExpr.cpp8426 SourceRange ParenRange) { in SuggestParentheses() argument
8427 SourceLocation EndLoc = Self.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses()
8428 if (ParenRange.getBegin().isFileID() && ParenRange.getEnd().isFileID() && in SuggestParentheses()
8431 << FixItHint::CreateInsertion(ParenRange.getBegin(), "(") in SuggestParentheses()
8435 Self.Diag(Loc, Note) << ParenRange; in SuggestParentheses()
DSemaInit.cpp7983 SourceRange ParenRange = Kind.getParenOrBraceRange(); in Perform() local
7984 return S.ActOnParenListExpr(ParenRange.getBegin(), ParenRange.getEnd(), in Perform()
DTreeTransform.h3116 SourceRange ParenRange) { in RebuildCXXConstructExpr() argument
3134 ParenRange); in RebuildCXXConstructExpr()
/external/clang/lib/Sema/
DSemaType.cpp3054 SourceRange ParenRange(DeclType.Loc, DeclType.EndLoc); in warnAboutAmbiguousFunction() local
3059 << ParenRange; in warnAboutAmbiguousFunction()
3105 << FixItHint::CreateRemoval(ParenRange); in warnAboutAmbiguousFunction()
3108 S.getFixItZeroInitializerForType(RT, ParenRange.getBegin()); in warnAboutAmbiguousFunction()
3113 << FixItHint::CreateReplacement(ParenRange, Init); in warnAboutAmbiguousFunction()
DSemaDeclCXX.cpp11441 SourceRange ParenRange) { in BuildCXXConstructExpr() argument
11466 ConstructKind, ParenRange); in BuildCXXConstructExpr()
11480 SourceRange ParenRange) { in BuildCXXConstructExpr() argument
11490 RequiresZeroInit, ConstructKind, ParenRange); in BuildCXXConstructExpr()
11505 SourceRange ParenRange) { in BuildCXXConstructExpr() argument
11517 ParenRange); in BuildCXXConstructExpr()
DSemaInit.cpp6275 SourceRange ParenRange = Kind.getParenRange(); in Perform() local
6276 return S.ActOnParenListExpr(ParenRange.getBegin(), ParenRange.getEnd(), in Perform()
DSemaExpr.cpp6891 SourceRange ParenRange) { in SuggestParentheses() argument
6892 SourceLocation EndLoc = Self.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses()
6893 if (ParenRange.getBegin().isFileID() && ParenRange.getEnd().isFileID() && in SuggestParentheses()
6896 << FixItHint::CreateInsertion(ParenRange.getBegin(), "(") in SuggestParentheses()
6900 Self.Diag(Loc, Note) << ParenRange; in SuggestParentheses()
DTreeTransform.h2702 SourceRange ParenRange) { in RebuildCXXConstructExpr() argument
2715 ParenRange); in RebuildCXXConstructExpr()
/external/clang/include/clang/Parse/
DParser.h857 SourceRange ParenRange);
/external/llvm-project/clang/include/clang/Parse/
DParser.h1172 SourceRange ParenRange);
/external/clang/include/clang/Sema/
DSema.h4299 SourceRange ParenRange);
4310 SourceRange ParenRange);
4321 unsigned ConstructKind, SourceRange ParenRange);
/external/llvm-project/clang/include/clang/Sema/
DSema.h5588 SourceRange ParenRange);
5599 SourceRange ParenRange);
5610 unsigned ConstructKind, SourceRange ParenRange);