summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-pch.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Driver: hoist the `wchar_t` handling to the driverSaleem Abdulrasool2017-10-061-1/+1
| | | | | | | | | | | | | | | | Move the logic for determining the `wchar_t` type information into the driver. Rather than passing the single bit of information of `-fshort-wchar` indicate to the frontend the desired type of `wchar_t` through a new `-cc1` option of `-fwchar-type` and indicate the signedness through `-f{,no-}signed-wchar`. This replicates the current logic which was spread throughout Basic into the `RenderCharacterOptions`. Most of the changes to the tests are to ensure that the frontend uses the correct type. Add a new test set under `test/Driver/wchar_t.c` to ensure that we calculate the proper types for the various cases. llvm-svn: 315126
* [PCH] When deserializing an IdentifierInfo, call ↵Argyrios Kyrtzidis2013-02-271-2/+4
| | | | | | | | | IdentifierInfo::RevertTokenIDToIdentifier() only when it's not already an identifier. Fixes an assertion hit. rdar://13288735 llvm-svn: 176148
* [libclang] When loading an AST file, make sure to apply the language optionsArgyrios Kyrtzidis2012-09-141-0/+6
to the target info. Related to rdar://12069503. llvm-svn: 163931
OpenPOWER on IntegriCloud