From: Kazu Hirata Date: Sun, 16 Oct 2022 04:07:02 +0000 (-0700) Subject: [clang] Remove redundaunt typename (NFC) X-Git-Tag: upstream/17.0.6~30422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=765af675bce580cd6473ce7bfb9255f22db14414;p=platform%2Fupstream%2Fllvm.git [clang] Remove redundaunt typename (NFC) --- diff --git a/clang/include/clang/Sema/ParsedAttr.h b/clang/include/clang/Sema/ParsedAttr.h index 1f5237d..8ed89d3 100644 --- a/clang/include/clang/Sema/ParsedAttr.h +++ b/clang/include/clang/Sema/ParsedAttr.h @@ -1173,21 +1173,21 @@ inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB, /// it explicit is hard. This constructor causes ambiguity with /// DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, SourceRange R). /// We use SFINAE to disable any conversion and remove any ambiguity. -template ::value, int> = 0> +template < + typename ACI, + std::enable_if_t::value, int> = 0> inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB, - const ACI &CI) { + const ACI &CI) { DB.AddTaggedVal(reinterpret_cast(CI.getAttrName()), DiagnosticsEngine::ak_identifierinfo); return DB; } -template ::value, int> = 0> +template < + typename ACI, + std::enable_if_t::value, int> = 0> inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB, - const ACI* CI) { + const ACI *CI) { DB.AddTaggedVal(reinterpret_cast(CI->getAttrName()), DiagnosticsEngine::ak_identifierinfo); return DB; diff --git a/clang/lib/ASTMatchers/ASTMatchFinder.cpp b/clang/lib/ASTMatchers/ASTMatchFinder.cpp index ac8e4ec..45eabfe 100644 --- a/clang/lib/ASTMatchers/ASTMatchFinder.cpp +++ b/clang/lib/ASTMatchers/ASTMatchFinder.cpp @@ -779,7 +779,7 @@ private: #define IMPL(Index) \ template \ - typename std::enable_if_t< \ + std::enable_if_t< \ llvm::is_one_of::value> \ SetCallbackAndRawNode(const MatchCallback *CB, const NodeType &N) { \ assertEmpty(); \ @@ -788,8 +788,8 @@ private: } \ \ template \ - typename std::enable_if_t< \ - llvm::is_one_of::value, const T *> \ + std::enable_if_t::value, \ + const T *> \ getNode() const { \ assertHoldsState(); \ return Callback.getInt() == (Index) ? Node##Index.dyn_cast() \