<div dir="rtl"><div dir="ltr">For C++ code it's easiest to use clang-format which by default implements the LLVM style.</div><div dir="ltr"><br><br><br>2016-04-28 20:32 GMT+03:00 Justin Bogner via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>:<br>><br>> Derek Bruening via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> writes:<br>> > Hi everyone, I have a code style question: should full test programs<br>> > (.c,.cpp files) use the documented CamelCase from<br>> > <a href="http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly">http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly</a><br>> > or<br>> > instead use lower_with_underscores as I've been told the .ll lit test files<br>> > should use?  I see both in existing files, and in particular for<br>> > projects/compiler-rt I cannot blindly follow the existing code as the<br>> > existing sanitizers were added with a separate style, with the consensus<br>> > being that new sanitizer files should switch to the LLVM style.<br>><br>> When in doubt follow the LLVM style. Most cases where you see C++ code<br>> that doesn't follow it are from before we codified the style in the<br>> docs.<br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></div></div>