Carlos Galvez
7d2ea6c422
[clang-tidy][NFC] Use C++17 nested namespaces in the clang-tidy folder
...
Fix applied by running:
run-clang-tidy.py -checks=-*,modernize-concat-nested-namespaces
Differential Revision: https://reviews.llvm.org/D141770
2023-01-14 18:51:39 +00:00
Kazu Hirata
f71ffd3b73
[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC)
...
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 20:19:42 -08:00
Kazu Hirata
71f557355d
[clang-tools-extra] Add #include <optional> (NFC)
...
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
2023-01-07 20:02:20 -08:00
Richard Trieu
8f9e489a66
Fix typo. "piont" => "point"
...
Found by Chris Morris (cwmorris).
llvm-svn: 369316
2019-08-20 00:28:21 +00:00
Hyrum Wright
8172a0a5f4
[clang-tidy] NFC: Negate the name and semantics of the isNotInMacro function.
...
This function is always used in a context where its result was also
negated, which made for confusing naming and code.
llvm-svn: 355702
2019-03-08 15:37:15 +00:00
Hyrum Wright
1ec465dbfd
[clang-tidy] Rename the absl duration helper functions; NFC
...
llvm-svn: 352088
2019-01-24 19:23:50 +00:00
Chandler Carruth
2946cd7010
Update the file headers across all of the LLVM projects in the monorepo
...
to reflect the new license.
We understand that people may be surprised that we're moving the header
entirely to discuss the new license. We checked this carefully with the
Foundation's lawyer and we believe this is the correct approach.
Essentially, all code in the project is now made available by the LLVM
project under our new license, so you will see that the license headers
include that license only. Some of our contributors have contributed
code under our old license, and accordingly, we have retained a copy of
our old license notice in the top-level files in each project and
repository.
llvm-svn: 351636
2019-01-19 08:50:56 +00:00
Hyrum Wright
b60de17b51
[clang-tidy] Add abseil-duration-conversion-cast check
...
Differential Revision: https://reviews.llvm.org/D56532
llvm-svn: 351473
2019-01-17 20:37:35 +00:00