include-what-you-use does not handle -- in the options correctly. Using
-- just causes an error but it should signal the end of the options so
that filenames starting with -- are not interpreted as options.
pabs@chianamo ~ $ include-what-you-use main.c
main.c:12:10: fatal error: 'net/mac80211.h' file not found
#include <net/mac80211.h>
^
main.c should add these lines:
main.c should remove these lines:
- #include <linux/if_arp.h> // lines 20-20
- #include <linux/netdevice.h> // lines 15-15
- #include <linux/rtnetlink.h> // lines 21-21
- #include <linux/types.h> // lines 16-16
- struct ieee80211_txrx_stypes; // lines 381-381
The full include-list for main.c:
---
pabs@chianamo ~ $ include-what-you-use -- main.c
error: no such file or directory: '-fsyntax-only'
error: unable to handle compilation, expected exactly one compiler job in ' "/usr/bin/include-what-you-use" "-cc1" "-triple" "x86_64-pc-linux-gnu" "-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "main.c" "-mrelocation-model" "static" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64" "-target-linker-version" "2.24" "-resource-dir" "/usr/bin/../lib/clang/3.4" "-I/home/pabs/opt/include" "-c-isystem" "/home/pabs/opt/include" "-cxx-isystem" "/home/pabs/opt/include" "-objc-isystem" "/home/pabs/opt/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/bin/../lib/clang/3.4/include" "-internal-externc-isystem" "/usr/lib/gcc/x86_64-linux-gnu/4.9/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdebug-compilation-dir" "/home/pabs" "-ferror-limit" "19" "-fmessage-length" "140" "-mstackrealign" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-slp" "-o" "/tmp/user/1000/main-d977dc.o" "-x" "c" "main.c"; "/usr/bin/ld" "--hash-style=both" "--build-id" "--eh-frame-hdr" "-m" "elf_x86_64" "-dynamic-linker" "/lib64/ld-linux-x86-64.so.2" "-o" "a.out" "/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o" "/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o" "/usr/lib/gcc/x86_64-linux-gnu/4.9/crtbegin.o" "-L/usr/lib/gcc/x86_64-linux-gnu/4.9" "-L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu" "-L/lib/x86_64-linux-gnu" "-L/lib/../lib64" "-L/usr/lib/x86_64-linux-gnu" "-L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.." "-L/lib" "-L/usr/lib" "/tmp/user/1000/main-d977dc.o" "-L/home/pabs/opt/lib" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/gcc/x86_64-linux-gnu/4.9/crtend.o" "/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o"; '
Hello, Good morning, We have gone through your samples from a partner and Here is our Order List. Please do bear in mind that we are very much in need of this order, quote your competitive prices. Kindly send the Order confirmation. Your early reply will be much appreciated. Best Regards, Maryanah Erwin. PT FINDORA INTERNUSA Jln Pahlawan 66 Kec. Arjawinangun 45162 CIREBON West-Java INDONESIA tel : +62 231 357334 fax: +62 231 357260 email: marketing@findora.com