Issue 243820
Summary [clang-tidy][request] Enforce consistent usage of braces/parentheses in constructor calls
Labels clang-tidy
Assignees
Reporter chrchr-github
    Check request, see comments below.
```c++
#include <string>

int main() {
 std::string s1("abc"); // (1) enforce parentheses: warn for s2
 std::string s2{"def"}; // (2) or enforce braces: warn for s1
 std::string s3{'g', 'h', 'i'}; // optionally allow initializer list when (1) is enforced
    return s1.size() + s2.size() + s3.size();
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to