Skip to content

Commit 6bda14b

Browse files
committedJun 6, 2017
Sort the remaining #include lines in include/... and lib/....
I did this a long time ago with a janky python script, but now clang-format has built-in support for this. I fed clang-format every line with a #include and let it re-sort things according to the precise LLVM rules for include ordering baked into clang-format these days. I've reverted a number of files where the results of sorting includes isn't healthy. Either places where we have legacy code relying on particular include ordering (where possible, I'll fix these separately) or where we have particular formatting around #include lines that I didn't want to disturb in this patch. This patch is *entirely* mechanical. If you get merge conflicts or anything, just ignore the changes in this patch and run clang-format over your #include lines in the files. Sorry for any noise here, but it is important to keep these things stable. I was seeing an increasing number of patches with irrelevant re-ordering of #include lines because clang-format was used. This patch at least isolates that churn, makes it easy to skip when resolving conflicts, and gets us to a clean baseline (again). llvm-svn: 304787
1 parent 9a67b07 commit 6bda14b

File tree

771 files changed

+1057
-1082
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

771 files changed

+1057
-1082
lines changed
 

‎llvm/include/llvm-c/ExecutionEngine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#ifndef LLVM_C_EXECUTIONENGINE_H
2020
#define LLVM_C_EXECUTIONENGINE_H
2121

22-
#include "llvm-c/Types.h"
2322
#include "llvm-c/Target.h"
2423
#include "llvm-c/TargetMachine.h"
24+
#include "llvm-c/Types.h"
2525

2626
#ifdef __cplusplus
2727
extern "C" {

‎llvm/include/llvm-c/Support.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#ifndef LLVM_C_SUPPORT_H
1515
#define LLVM_C_SUPPORT_H
1616

17-
#include "llvm/Support/DataTypes.h"
1817
#include "llvm-c/Types.h"
18+
#include "llvm/Support/DataTypes.h"
1919

2020
#ifdef __cplusplus
2121
extern "C" {

0 commit comments

Comments
 (0)