llvm-project/clang-tools-extra/clang-tidy/modernize
Richard Smith da3dc0011e PR44684: Look through parens and similar constructs when determining
whether a call is to a builtin.

We already had a general mechanism to do this but for some reason
weren't using it. In passing, check for the other unary operators that
can intervene in a reasonably-direct function call (we already handled
'&' but missed '*' and '+').

This reverts commit aaae6b1b61,
reinstating af80b8ccc5, with a fix to
clang-tidy.
2020-02-06 12:21:54 -08:00
..
AvoidBindCheck.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
AvoidBindCheck.h [clang-tidy] Rewrite modernize-avoid-bind check. 2019-12-02 15:36:26 -08:00
AvoidCArraysCheck.cpp NFC: Fix trivial typos in comments 2020-01-04 10:28:41 -05:00
AvoidCArraysCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
CMakeLists.txt Recommit r360345 with fixes (was reverted in r360348). 2019-05-10 16:24:28 +00:00
ConcatNestedNamespacesCheck.cpp Re-apply r357823 "[Lexer] NFC: Fix an off-by-one bug in getAsCharRange()." 2019-04-23 21:15:26 +00:00
ConcatNestedNamespacesCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
DeprecatedHeadersCheck.cpp [clang-tools-extra] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:52:23 +00:00
DeprecatedHeadersCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
DeprecatedIosBaseAliasesCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeprecatedIosBaseAliasesCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
LoopConvertCheck.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
LoopConvertCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
LoopConvertUtils.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
LoopConvertUtils.h Fix trivial typos in comments; NFC 2020-01-02 13:41:43 -05:00
MakeSharedCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MakeSharedCheck.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MakeSmartPtrCheck.cpp [ASTMatchers] Add hasPlacementArg and hasAnyPlacementArg traversal matcher for CXXNewExpr 2020-01-30 10:16:04 +00:00
MakeSmartPtrCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
MakeUniqueCheck.cpp MakeUniqueCheck.cpp: explicit the fact that there is an autofix for this checker 2020-01-10 22:06:03 +01:00
MakeUniqueCheck.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ModernizeTidyModule.cpp Recommit r360345 with fixes (was reverted in r360348). 2019-05-10 16:24:28 +00:00
PassByValueCheck.cpp Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
PassByValueCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
RawStringLiteralCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RawStringLiteralCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
RedundantVoidArgCheck.cpp [clang-tidy] Fix PR28406 2019-03-29 20:55:29 +00:00
RedundantVoidArgCheck.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
ReplaceAutoPtrCheck.cpp Fix trivial typos in comments; NFC 2020-01-02 13:41:43 -05:00
ReplaceAutoPtrCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
ReplaceRandomShuffleCheck.cpp [clang-tools-extra] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:52:23 +00:00
ReplaceRandomShuffleCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
ReturnBracedInitListCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ReturnBracedInitListCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
ShrinkToFitCheck.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ShrinkToFitCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UnaryStaticAssertCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UnaryStaticAssertCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseAutoCheck.cpp NFC: Fix trivial typos in comments 2020-01-04 10:28:41 -05:00
UseAutoCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseBoolLiteralsCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UseBoolLiteralsCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseDefaultMemberInitCheck.cpp [clang-tidy] Match InitListExpr in modernize-use-default-member-init 2020-01-14 15:19:37 +00:00
UseDefaultMemberInitCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseEmplaceCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UseEmplaceCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseEqualsDefaultCheck.cpp [clang-tidy] modernize-use-equals-default avoid adding redundant semicolons 2019-11-20 18:08:37 -05:00
UseEqualsDefaultCheck.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
UseEqualsDeleteCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UseEqualsDeleteCheck.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
UseNodiscardCheck.cpp Fix modernize-use-nodiscard for classes marked [[nodiscard]] 2019-10-30 13:45:37 -04:00
UseNodiscardCheck.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
UseNoexceptCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UseNoexceptCheck.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
UseNullptrCheck.cpp NFC: Fix trivial typos in comments 2020-01-04 10:28:41 -05:00
UseNullptrCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseOverrideCheck.cpp [clang-tidy] modernize-use-override new option AllowOverrideAndFinal 2019-11-19 07:52:32 -05:00
UseOverrideCheck.h [clang-tidy] modernize-use-override new option AllowOverrideAndFinal 2019-11-19 07:52:32 -05:00
UseTrailingReturnTypeCheck.cpp [clang-tidy] Initialize token before handing it to the lexer 2020-01-29 16:48:57 +01:00
UseTrailingReturnTypeCheck.h Recommit r360345 with fixes (was reverted in r360348). 2019-05-10 16:24:28 +00:00
UseTransparentFunctorsCheck.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UseTransparentFunctorsCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseUncaughtExceptionsCheck.cpp PR44684: Look through parens and similar constructs when determining 2020-02-06 12:21:54 -08:00
UseUncaughtExceptionsCheck.h [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
UseUsingCheck.cpp Allow modernize-use-using to apply to enumerations as well. 2020-02-03 07:54:38 -05:00
UseUsingCheck.h Allow modernize-use-using to apply to enumerations as well. 2020-02-03 07:54:38 -05:00