diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-04-30 14:59:11 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-04-30 14:59:11 +0000 |
commit | 0f38c60baffcc971db0b244a7085400ae4e45b09 (patch) | |
tree | 4a7aba36df55904d19f6fe4125bb497c9324bb58 /bindings | |
parent | b0beac8bcffd624a01f2959c65cb0ffa1ca3cb25 (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 'bindings')
-rw-r--r-- | bindings/ocaml/llvm/llvm_ocaml.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c index 137b17f26bf..77689edcf6d 100644 --- a/bindings/ocaml/llvm/llvm_ocaml.c +++ b/bindings/ocaml/llvm/llvm_ocaml.c @@ -20,6 +20,7 @@ #include <string.h> #include "llvm-c/Core.h" #include "llvm-c/Support.h" +#include "llvm/Config/llvm-config.h" #include "caml/alloc.h" #include "caml/custom.h" #include "caml/memory.h" |