[cfe-users] Strange problem with C preprocessor include file searching (Mac, llvm 10)

2020-04-27 Thread Larry Gritz via cfe-users
Excuse if this is a tricky explanation; I'm not sure I understand what's going on. I have a C-like language and compiler for which I use clang libraries to do the preprocessing. My compiler lets users specify `-I` directories for searchpaths for includes, per usual convention. I'm doing someth

Re: [cfe-users] Strange problem with C preprocessor include file searching (Mac, llvm 10)

2020-04-28 Thread Larry Gritz via cfe-users
eaders that aren't in the very first included searchpath -- ONLY for llvm 10, ONLY on Mac, ONLY if I'm doing it through a second spawned shell (works fine when I directly type the command). Any guesses? > On Apr 27, 2020, at 12:00 PM, Larry Gritz via cfe-users > wrot

Re: [cfe-users] Strange problem with C preprocessor include file searching (Mac, llvm 10)

2020-04-28 Thread Larry Gritz via cfe-users
blah.osl -> blah.oso > > > Works fine again. I don't have a working theory for what's going on here. > > So I know the -I commands are making it to my program, and I know I'm passing > those paths to libclang, because its own diagnostics list those directorie

[cfe-users] How to make #error or #warning work with libclang preprocessing?

2020-11-06 Thread Larry Gritz via cfe-users
I'm using clang libraries to implement the preprocessor for my language -- set up a CompilerInstance, setDiagnostics, ... DoPrintPreprocessedInput. When I preprocess code that has a #error or #warning, it just gets reported as "invalid preprocessing directive" on the clang side, no different tha