3 ms·
> Is it trivial to implement? Yes. https://github.com/llvm-mirror/clang/blob/799b6c6d7/lib/Lex/Pragma.cpp#L389-L403 https://github.com/llvm-mirror/clang/blob/
by loeg 8y ago
> Is it trivial to implement?
Yes.
https://github.com/llvm-mirror/clang/blob/799b6c6d7/lib/Lex/Pragma.cpp#L389-L403 https://github.com/llvm-mirror/clang/blob/799b6c6d7/lib/Lex/...
https://github.com/llvm-mirror/clang/blob/799b6c6d7/include/clang/Lex/HeaderSearch.h#L434-L440 https://github.com/llvm-mirror/clang/blob/799b6c6d7/include/...
- kazinator 8y agoI agree that it's trivial to invoke a member function called MarkFileIncludeOnce on some object in response to encountering a #pragma once. I don't think there is any good way to specify how this should behave for all the corner cases; but a given specification isn't hard to implement.