aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/utils/FileExtensionsUtils.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-01-14[clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folderCarlos Galvez1-6/+2
Fix applied by running: run-clang-tidy.py -checks=-*,modernize-concat-nested-namespaces Differential Revision: https://reviews.llvm.org/D141770
2023-01-07[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC)Kazu Hirata1-1/+1
This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to clean up the "using" declarations, #include "llvm/ADT/Optional.h", etc. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-07[clang-tools-extra] Add #include <optional> (NFC)Kazu Hirata1-0/+1
This patch adds #include <optional> to those files containing llvm::Optional<...> or Optional<...>. I'll post a separate patch to actually replace llvm::Optional with std::optional. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2022-12-03[clang-tidy] Use std::nullopt instead of None (NFC)Kazu Hirata1-2/+2
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2022-06-20Don't use Optional::hasValue (NFC)Kazu Hirata1-1/+1
2020-03-12[clang-tidy] New check: bugprone-suspicious-includeJonathan Roelofs1-4/+11
Detects and fixes suspicious code like: `#include "foo.cpp"`. Inspired by: https://twitter.com/lefticus/status/1228458240364687360?s=20 https://reviews.llvm.org/D74669
2020-03-10Revert "[clang-tidy] New check: bugprone-suspicious-include"Nico Weber1-11/+4
This reverts commit 1e0669bfe05f0f48ee88152c4a1d581f484f8d67 (and follow-ups 698a12712920c214e39bb215fe26fad2e099425b and 52bbdad7d63fd060d102b3591b433d116a982255). The tests fail fail on Windows, see https://reviews.llvm.org/D74669
2020-03-09[clang-tidy] New check: bugprone-suspicious-includeJonathan Roelofs1-4/+11
Detects and fixes suspicious code like: `#include "foo.cpp"`. Inspired by: https://twitter.com/lefticus/status/1228458240364687360?s=20 https://reviews.llvm.org/D74669
2020-03-09[clang-tidy] Use ; as separator for HeaderFileExtensionsJonathan Roelofs1-2/+9
... and deprecate use of ',' for the same. https://reviews.llvm.org/D75621
2020-03-09[clang-tidy] Generalize HeaderFileExtensions.{h,cpp}. NFCJonathan Roelofs1-0/+60
https://reviews.llvm.org/D75489