[PATCH] D137409: [clang-format][NFCish] Alphabetical sort Format.(h|pp)
HazardyKnusperkeks added inline comments. Comment at: clang/unittests/Format/FormatTest.cpp:23323 "WhitespaceSensitiveMacros: ['FOO', 'BAR']"))); - std::vector NonDefaultWhiteSpaceMacros{"FOO", "BAR"}; + std::vector NonDefaultWhiteSpaceMacros = + Style9->WhitespaceSensitiveMacros; MyDeveloperDay wrote: > related? Sadly yes. Because `WhiteSensitiveMacros` were not handled in `operator==` we basically tested nothing here. When I wrote the tests I assumed (and still think it should be that way) that `WhiteSensitiveMacros` would only contain what is posted in the `.clang-format`. But that's not the case, the vector gets filled with whatever `getLLVMStyle()` does and then overwrites them in order, extending when there is not enough room. That will hold for all `std::vector`s and so. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137409/new/ https://reviews.llvm.org/D137409 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D137409: [clang-format][NFCish] Alphabetical sort Format.(h|pp)
owenpan added a comment. Don't forget to run dump_format_style.py before landing. :) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137409/new/ https://reviews.llvm.org/D137409 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D137409: [clang-format][NFCish] Alphabetical sort Format.(h|pp)
MyDeveloperDay accepted this revision. MyDeveloperDay added inline comments. This revision is now accepted and ready to land. Comment at: clang/unittests/Format/FormatTest.cpp:23323 "WhitespaceSensitiveMacros: ['FOO', 'BAR']"))); - std::vector NonDefaultWhiteSpaceMacros{"FOO", "BAR"}; + std::vector NonDefaultWhiteSpaceMacros = + Style9->WhitespaceSensitiveMacros; related? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137409/new/ https://reviews.llvm.org/D137409 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits