[lld] r326371 - Make sure that clang-format doesn't reorder include files.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 13:32:25 PST 2018


Author: ruiu
Date: Wed Feb 28 13:32:24 2018
New Revision: 326371

URL: http://llvm.org/viewvc/llvm-project?rev=326371&view=rev
Log:
Make sure that clang-format doesn't reorder include files.

clang-format won't reorder include files if there is a blank line.
Thanks to Nico for the tips.

Modified:
    lld/trunk/Common/Strings.cpp

Modified: lld/trunk/Common/Strings.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/Common/Strings.cpp?rev=326371&r1=326370&r2=326371&view=diff
==============================================================================
--- lld/trunk/Common/Strings.cpp (original)
+++ lld/trunk/Common/Strings.cpp Wed Feb 28 13:32:24 2018
@@ -18,6 +18,8 @@
 
 #if defined(_MSC_VER)
 #include <Windows.h>
+
+// DbgHelp.h must be included after Windows.h.
 #include <DbgHelp.h>
 #pragma comment(lib, "dbghelp.lib")
 #endif




More information about the llvm-commits mailing list