llvm-project/clang-tools-extra/clang-tidy/modernize
Jan Svoboda d79ad2f1db [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective()
This patch changes type of the `File` parameter in `PPCallbacks::InclusionDirective()` from `const FileEntry *` to `Optional<FileEntryRef>`.

With the API change in place, this patch then removes some uses of the deprecated `FileEntry::getName()` (e.g. in `DependencyGraph.cpp` and `ModuleDependencyCollector.cpp`).

Reviewed By: dexonsmith, bnbarham

Differential Revision: https://reviews.llvm.org/D123574
2022-04-14 10:46:12 +02:00
..
AvoidBindCheck.cpp [clang-tidy] getLambdaProperties - use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-01-31 17:25:16 +00:00
AvoidBindCheck.h [clang-tidy] Implement storeOptions for checks missing it. 2020-06-21 19:01:11 +01:00
AvoidCArraysCheck.cpp [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
AvoidCArraysCheck.h
CMakeLists.txt [clang-tidy] Add modernize-macro-to-enum check 2022-04-01 15:24:21 -06:00
ConcatNestedNamespacesCheck.cpp [clang-tidy] Enable modernize-concat-nested-namespaces also on headers 2021-03-15 07:32:45 -07:00
ConcatNestedNamespacesCheck.h
DeprecatedHeadersCheck.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
DeprecatedHeadersCheck.h
DeprecatedIosBaseAliasesCheck.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
DeprecatedIosBaseAliasesCheck.h
LoopConvertCheck.cpp Use isa instead of dyn_cast (NFC) 2021-12-24 21:22:27 -08:00
LoopConvertCheck.h [clang-tidy] modernize-loop-convert reverse iteration support 2020-10-16 14:16:30 +01:00
LoopConvertUtils.cpp [C++2b] Implement multidimentional subscript operator 2022-02-08 12:10:47 -05:00
LoopConvertUtils.h [clang-tidy] Fix a crash in modernize-loop-convert around conversion operators 2021-11-15 13:11:29 +01:00
MacroToEnumCheck.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
MacroToEnumCheck.h [clang-tidy] Add modernize-macro-to-enum check 2022-04-01 15:24:21 -06:00
MakeSharedCheck.cpp [clang-tidy] Improved accuracy of check list updater script 2020-06-22 11:07:24 +01:00
MakeSharedCheck.h
MakeSmartPtrCheck.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
MakeSmartPtrCheck.h [clang-tidy] Omit std::make_unique/make_shared for default initialization. 2020-12-08 10:34:17 -05:00
MakeUniqueCheck.cpp
MakeUniqueCheck.h
ModernizeTidyModule.cpp [clang-tidy] Add modernize-macro-to-enum check 2022-04-01 15:24:21 -06:00
PassByValueCheck.cpp [clang-tidy] Fix false positive in modernize-pass-by-value 2022-01-05 14:33:40 +01:00
PassByValueCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
RawStringLiteralCheck.cpp Use StringRef::contains (NFC) 2021-12-24 22:05:34 -08:00
RawStringLiteralCheck.h
RedundantVoidArgCheck.cpp [clang-tidy] Improve modernize-redundant-void-arg to recognize macro uses 2022-01-12 13:51:50 -07:00
RedundantVoidArgCheck.h
ReplaceAutoPtrCheck.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
ReplaceAutoPtrCheck.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ReplaceDisallowCopyAndAssignMacroCheck.cpp [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
ReplaceDisallowCopyAndAssignMacroCheck.h [clang-tidy]: Added modernize-replace-disallow-copy-and-assign-macro 2020-06-03 16:56:03 -04:00
ReplaceRandomShuffleCheck.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
ReplaceRandomShuffleCheck.h [clang-tidy] Refactor IncludeInserter 2020-07-27 12:48:55 +01:00
ReturnBracedInitListCheck.cpp [clang-tidy] Simplify braced init check 2021-02-20 20:09:13 +00:00
ReturnBracedInitListCheck.h [clang-tidy] Simplify braced init check 2021-02-20 20:09:13 +00:00
ShrinkToFitCheck.cpp [clang-tidy] Simplify shrink to fit check 2021-02-27 12:11:42 +00:00
ShrinkToFitCheck.h [clang-tidy] Simplify shrink to fit check 2021-02-27 12:11:42 +00:00
UnaryStaticAssertCheck.cpp
UnaryStaticAssertCheck.h
UseAutoCheck.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
UseAutoCheck.h
UseBoolLiteralsCheck.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
UseBoolLiteralsCheck.h [clang-tidy] Implement storeOptions for checks missing it. 2020-06-21 19:01:11 +01:00
UseDefaultMemberInitCheck.cpp [clang-tidy] UseDefaultMemberInitCheck::checkDefaultInit - Use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-01-12 15:35:37 +00:00
UseDefaultMemberInitCheck.h [clang-tidy] Simplify default member init check 2021-02-27 12:11:43 +00:00
UseEmplaceCheck.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
UseEmplaceCheck.h
UseEqualsDefaultCheck.cpp [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
UseEqualsDefaultCheck.h
UseEqualsDeleteCheck.cpp [ASTMatchers] Fix `hasBody` for the descendants of `FunctionDecl` 2020-09-16 13:16:51 +02:00
UseEqualsDeleteCheck.h [clang-tidy] Convert config options that are bools to use the bool overload of get(GlobalOrLocal)? 2020-04-12 23:06:09 +01:00
UseNodiscardCheck.cpp [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
UseNodiscardCheck.h
UseNoexceptCheck.cpp [clang-tidy] UseNoexceptCheck::check - use cast<> instead of dyn_cast<> to avoid dereference of nullptr 2022-02-12 10:51:48 +00:00
UseNoexceptCheck.h [clang-tidy] Fix potential assert in use-noexcept check 2020-05-24 14:40:58 +01:00
UseNullptrCheck.cpp [clang-tidy] fix modernize-use-nullptr false positive with spaceship operator comparisons 2021-02-09 14:02:45 +00:00
UseNullptrCheck.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
UseOverrideCheck.cpp [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
UseOverrideCheck.h
UseTrailingReturnTypeCheck.cpp [clang-tidy] Add early exit for defaulted FunctionDecls 2022-02-10 20:29:26 +01:00
UseTrailingReturnTypeCheck.h [clang-tidy] Fix lint warnings in clang-tidy source code (NFC) 2021-11-02 20:14:25 +13:00
UseTransparentFunctorsCheck.cpp [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
UseTransparentFunctorsCheck.h
UseUncaughtExceptionsCheck.cpp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
UseUncaughtExceptionsCheck.h
UseUsingCheck.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
UseUsingCheck.h [clang-tidy] Implement storeOptions for checks missing it. 2020-06-21 19:01:11 +01:00