llvm-project/clang/tools/libclang
Shoaib Meenai 82415e2614 [libclang] Fix the type of 'int (Foo);'
libclang exposes the type of 'int (Foo);' (a global variable of type int
called Foo) as CXType_Unexposed. This is because Clang represents Foo's
type as ParenType{BuiltinType{Int}}, and libclang does not handle
ParenType.

Make libclang return CXType_Int as the type of 'int (Foo);' by
unwrapping ParenType transparently.

Patch by Matt Glazar.

Differential Revision: https://reviews.llvm.org/D45713

llvm-svn: 331306
2018-05-01 20:45:25 +00:00
..
ARCMigrate.cpp [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
BuildSystem.cpp Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
CIndex.cpp PR37189 Fix incorrect end source location and spelling for a split '>>' token. 2018-04-30 05:25:48 +00:00
CIndexCXX.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexCodeCompletion.cpp [CodeComplete] Add an option to omit results from the preamble. 2018-01-12 14:51:47 +00:00
CIndexDiagnostic.cpp Revert "Revert "[NFC] Refactor DiagnosticRenderer to use FullSourceLoc"" 2017-06-27 09:50:38 +00:00
CIndexDiagnostic.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CIndexHigh.cpp [libclang] Revert part of r290025, "Remove the 'extern "C"' blocks from the implementation files." 2016-12-19 16:50:43 +00:00
CIndexInclusionStack.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexUSRs.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexer.cpp IWYU for llvm-config.h in clang. See r331124 for details. 2018-04-30 13:52:15 +00:00
CIndexer.h [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
CLog.h Replace uses of LLVM_FUNCTION_NAME with __func__, this was macro was removed from llvm/Support in r284681 2016-10-20 02:46:22 +00:00
CMakeLists.txt Fix typo in comment. 2018-04-23 19:22:52 +00:00
CXComment.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXComment.h
CXCompilationDatabase.cpp [Tooling][libclang] Remove unused CompilationDatabase::MappedSources 2017-05-23 13:50:43 +00:00
CXCursor.cpp Fix typos in clang 2018-04-06 15:14:32 +00:00
CXCursor.h Fix typos in clang 2018-04-06 15:14:32 +00:00
CXIndexDataConsumer.cpp [Index] Return SourceLocation to consumers, not FileID/Offset pair. 2018-04-09 14:12:51 +00:00
CXIndexDataConsumer.h [Index] Return SourceLocation to consumers, not FileID/Offset pair. 2018-04-09 14:12:51 +00:00
CXLoadedDiagnostic.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXLoadedDiagnostic.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CXSourceLocation.cpp Reverting r316278 due to failing build bots. 2017-10-21 21:52:48 +00:00
CXSourceLocation.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
CXStoredDiagnostic.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CXString.cpp Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
CXString.h libclang: add new StringSet type 2015-11-12 03:57:16 +00:00
CXTranslationUnit.h [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
CXType.cpp [libclang] Fix the type of 'int (Foo);' 2018-05-01 20:45:25 +00:00
CXType.h
CursorVisitor.h [index] Expose FriendDecl 2016-11-04 06:29:27 +00:00
Index_Internal.h
Indexing.cpp [index] Fix methods that take a shared_ptr to just take a reference. 2018-04-23 14:30:21 +00:00
libclang.exports [libclang] Add clang_File_tryGetRealPathName 2018-04-07 20:50:35 +00:00