Skip to content
Commit 3a9c42c4 authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[modules] Before marking the module imported macros as ambiguous, check if this is a case where

the system macro uses a not identical definition compared to a macro from the clang headers.

For example (these come from different modules):
   \#define LONG_MAX __LONG_MAX__ (clang's limits.h)
   \#define LONG_MAX 0x7fffffffffffffffL (system's limits.h)
in which case don't mark them ambiguous to avoid the "ambiguous macro expansion" warning.

llvm-svn: 178109
parent 2e2ff137
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment