Options like -iquote can have a <dir> attached, without whitespace. - #5167
Options like -iquote can have a <dir> attached, without whitespace.#5167mmjo wants to merge 1 commit into
Conversation
|
I tried to create an issue, but somehow github does not allow that. In a Makefile, -iquote. fails with gcc/clang InformationVIM version VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 24 2026 22:13:04) Operating System: Ubuntu 24.04 What went wrongBuilding tmux, with gcc, running linter on save, i get: Or with clang: Reproducing the buglet b:ale_c_parse_makefile=1 Running the cc (gcc) linter. :ALEInfoExpandCurrent Filetype: c Available Linters: ['astgrep', 'cc', 'ccls', 'clangcheck', 'clangd', 'clangtidy', 'cppcheck', 'cpplint', 'cquery', 'cspell', 'flawfinder'] Linter Aliases: 'cc' -> ['gcc', 'clang'] Enabled Linters: ['cc', 'flawfinder'] Ignored Linters: [] Suggested Fixers: 'ast-grep' - Apply ast-grep rules. 'astyle' - Fix C/C++ with astyle. 'clang-format' - Fix C, C++, C#, CUDA, Java, JavaScript, JSON, ObjectiveC and Protobuf files with clang-format. 'clangtidy' - Fix C/C++ and ObjectiveC files with clang-tidy. 'remove_trailing_lines' - Remove all blank lines at the end of a file. 'replace_emdash' - Replace em dash with -- ASCII characters. 'trim_whitespace' - Remove all trailing whitespace characters at the end of every line. 'uncrustify' - Fix C, C++, C#, ObjectiveC, ObjectiveC++, D, Java, Pawn, and VALA files with uncrustify.Linter Variables: Global Variables: Command History: (executable check - success) gcc <<>> (finished - exit code 1) ['env', 'BASH_ENV=/home/mike/etc/bash/alias.bash', '/bin/bash', '-O', 'expand_aliases', '-c', 'cd ''/mnt/data/download/src/tmux'' && ''gcc'' -S -x c -o /dev/null -iquote ''/mnt/data/download/src/tmux'' -DPACKAGE_NAME="tmux" -DPACKAGE_TARNAME="tmux" -DPACKAGE_VERSION="next-3.7" -DPACKAGE_STRING="tmux\ next-3.7" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DPACKAGE="tmux" -DVERSION="next-3.7" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_PATHS_H=1 -DHAVE_PTY_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_LIBM=1 -DHAVE_DIRFD=1 -DHAVE_FLOCK=1 -DHAVE_PRCTL=1 -DHAVE_SYSCONF=1 -DHAVE_ASPRINTF=1 -DHAVE_CFMAKERAW=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_CLOSEFROM=1 -DHAVE_EXPLICIT_BZERO=1 -DHAVE_GETDTABLESIZE=1 -DHAVE_GETLINE=1 -DHAVE_MEMMEM=1 -DHAVE_SETENV=1 -DHAVE_STRCASESTR=1 -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 -DHAVE_STRNDUP=1 -DHAVE_STRSEP=1 -DHAVE_EVENT2_EVENT_H=1 -DHAVE_NCURSES_H=1 -DHAVE_TIPARM=1 -DHAVE_TIPARM_S=1 -DHAVE_B64_NTOP=1 -DHAVE_MALLOC_TRIM=1 -DHAVE_DAEMON=1 -DHAVE_FORKPTY=1 -DHAVE___PROGNAME=1 -DHAVE_PROGRAM_INVOCATION_SHORT_NAME=1 -DHAVE_PR_SET_NAME=1 -DHAVE_SO_PEERCRED=1 -DHAVE_PROC_PID=1 -I ''/mnt/data/download/src/tmux'' -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DTMUX_VERSION=''"next-3.7"'' -DTMUX_CONF=''"/etc/tmux.conf: <<>> |
gcc and clang accept both '-iquote<dir>' and '-iquote <dir>'.
Just like '-I.' and '-I .', which was already accepted.
Same for '-isystem', '-idirafter' and '-iframework'.