Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | private: | ||||
SourceLocation findTrailingReturnTypeSourceLocation( | SourceLocation findTrailingReturnTypeSourceLocation( | ||||
const FunctionDecl &F, const FunctionTypeLoc &FTL, const ASTContext &Ctx, | const FunctionDecl &F, const FunctionTypeLoc &FTL, const ASTContext &Ctx, | ||||
const SourceManager &SM, const LangOptions &LangOpts); | const SourceManager &SM, const LangOptions &LangOpts); | ||||
llvm::Optional<SmallVector<ClassifiedToken, 8>> | llvm::Optional<SmallVector<ClassifiedToken, 8>> | ||||
classifyTokensBeforeFunctionName(const FunctionDecl &F, const ASTContext &Ctx, | classifyTokensBeforeFunctionName(const FunctionDecl &F, const ASTContext &Ctx, | ||||
const SourceManager &SM, | const SourceManager &SM, | ||||
const LangOptions &LangOpts); | const LangOptions &LangOpts); | ||||
SourceRange findReturnTypeAndCVSourceRange(const FunctionDecl &F, | SourceRange findReturnTypeAndCVSourceRange(const FunctionDecl &F, | ||||
const TypeLoc &ReturnLoc, | |||||
const ASTContext &Ctx, | const ASTContext &Ctx, | ||||
const SourceManager &SM, | const SourceManager &SM, | ||||
const LangOptions &LangOpts); | const LangOptions &LangOpts); | ||||
bool keepSpecifiers(std::string &ReturnType, std::string &Auto, | void keepSpecifiers(std::string &ReturnType, std::string &Auto, | ||||
SourceRange ReturnTypeCVRange, const FunctionDecl &F, | SourceRange ReturnTypeCVRange, const FunctionDecl &F, | ||||
const FriendDecl *Fr, const ASTContext &Ctx, | const FriendDecl *Fr, const ASTContext &Ctx, | ||||
const SourceManager &SM, const LangOptions &LangOpts); | const SourceManager &SM, const LangOptions &LangOpts); | ||||
}; | }; | ||||
} // namespace modernize | } // namespace modernize | ||||
} // namespace tidy | } // namespace tidy | ||||
} // namespace clang | } // namespace clang | ||||
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_USETRAILINGRETURNTYPECHECK_H | #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_USETRAILINGRETURNTYPECHECK_H |