[cfe-dev] Is it OK to directly compare CXFile?
kyrtzidis at apple.com
Fri Aug 15 17:37:03 PDT 2014
Introduced clang_File_isEqual function in r215796.
> On Aug 7, 2014, at 5:20 AM, Milian Wolff <mail at milianw.de> wrote:
> using the clang-c API, there is no clang_equalFiles or similar. CXFile itself
> is just a typedef of void*. In our tests, we saw that these CXFile's are
> probably interned, i.e. you get the same ptr address for equal
> So - is it safe and OK to directly compare the ptr addresses stored in a
> CXFile? If so, could you please document this? If not, also document it, and
> add a clang_equalFiles?
> Milian Wolff
> mail at milianw.de
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev