Details
Details
- Reviewers
etienneb alexfh hokein aaron.ballman JonasToth - Commits
- rGae814fcb4cbd: [clang-tidy] bugprone-string-constructor: Catch string from nullptr.
rL351308: [clang-tidy] bugprone-string-constructor: Catch string from nullptr.
rCTE351308: [clang-tidy] bugprone-string-constructor: Catch string from nullptr.
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 26777 Build 26776: arc lint + arc unit
Event Timeline
Comment Actions
LGTM aside from a nit and a test case request.
clang-tidy/bugprone/StringConstructorCheck.cpp | ||
---|---|---|
141 | Formatting is wrong here, and you can use const auto * as the type is spelled out in the initialization. | |
test/clang-tidy/bugprone-string-constructor.cpp | ||
49–50 | Can you also add: std::string q7 = 0; as a test case? |
Formatting is wrong here, and you can use const auto * as the type is spelled out in the initialization.