summaryrefslogtreecommitdiff
path: root/lib/Option/Arg.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-04-30 14:59:11 +0000
committerNico Weber <nicolasweber@gmx.de>2018-04-30 14:59:11 +0000
commit0f38c60baffcc971db0b244a7085400ae4e45b09 (patch)
tree4a7aba36df55904d19f6fe4125bb497c9324bb58 /lib/Option/Arg.cpp
parentb0beac8bcffd624a01f2959c65cb0ffa1ca3cb25 (diff)
IWYU for llvm-config.h in llvm, additions.
See r331124 for how I made a list of files missing the include. I then ran this Python script: for f in open('filelist.txt'): f = f.strip() fl = open(f).readlines() found = False for i in xrange(len(fl)): p = '#include "llvm/' if not fl[i].startswith(p): continue if fl[i][len(p):] > 'Config': fl.insert(i, '#include "llvm/Config/llvm-config.h"\n') found = True break if not found: print 'not found', f else: open(f, 'w').write(''.join(fl)) and then looked through everything with `svn diff | diffstat -l | xargs -n 1000 gvim -p` and tried to fix include ordering and whatnot. No intended behavior change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Option/Arg.cpp')
-rw-r--r--lib/Option/Arg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Option/Arg.cpp b/lib/Option/Arg.cpp
index e581fee8bf3..4ce40e3ab26 100644
--- a/lib/Option/Arg.cpp
+++ b/lib/Option/Arg.cpp
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/ADT/SmallString.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/Option.h"