Not sure it's OK to suppress this in clang itself - if we're building a PCH
or module, maybe it matters?
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think it is fine to do it in clang. pp_pragma_once_in_main_file is a similar diag, and clang has already suppressed it.
Comment Actions
As discussed offline, if we drop the warning in clang it's not clear whether we can/should keep ignoring the pragma.
Probably the principled answer is we should respect the pragma, but the implications of the extra FileChanged call aren't clear to me.
Simply suppressing the warning in clang (but continuing to ignore the pragma) seems no more principled than this patch.
Until we work it out, I think we should just suppress here.