[all-commits] [llvm/llvm-project] c6348e: cppcoreguidelines Narrowing Conversions Check: det...
Eric Seidel via All-commits
all-commits at lists.llvm.org
Tue Dec 8 10:11:07 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c6348e8c95ee1eaa9dd2322b278def7a4127ff26
https://github.com/llvm/llvm-project/commit/c6348e8c95ee1eaa9dd2322b278def7a4127ff26
Author: Eric Seidel <eric at seidel.io>
Date: 2020-12-08 (Tue, 08 Dec 2020)
Changed paths:
M clang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-narrowing-conversions.cpp
Log Message:
-----------
cppcoreguidelines Narrowing Conversions Check: detect narrowing conversions involving typedefs
The check 'cppcoreguidelines-narrowing-conversions' does not detect conversions
involving typedef. This notably includes the standard fixed-width integer types
like int32_t, uint64_t, etc. Now look through the typedefs at the desugared type.
More information about the All-commits
mailing list