Page MenuHome

Clang: warn about C++20 designator
ClosedPublic

Authored by Ankit Meel (ankitm) on Jul 15 2021, 10:24 PM.

Details

Summary

With the ongoing transition to C++ files, windows build
breaks often because of designated initializers.
Now we have two compilers to catch MSVC build error on.

Diff Detail

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Jul 15 2021, 10:24 PM
Ankit Meel (ankitm) created this revision.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Jul 16 2021, 7:20 AM

remove c99, use c++20 flag only.

Ankit Meel (ankitm) retitled this revision from macOS: warn about C++20/ C99 designator to macOS: warn about C++20 designator.Jul 16 2021, 7:32 AM

since linux has clang too

Ankit Meel (ankitm) retitled this revision from macOS: warn about C++20 designator to Clang: warn about C++20 designator.Aug 2 2021, 7:44 PM
This revision is now accepted and ready to land.Aug 21 2021, 10:18 AM

Testing on Linux with Clang and it works as expected.

CMakeLists.txt
1587

Worth noting that we can drop MSVC 2019 (IIRC), this can be removed.