llvm-project/clang/lib/Serialization
Douglas Gregor 57756eabc9 When performing typo correction, look through the set of known
identifiers to determine good typo-correction candidates. Once we've
identified those candidates, we perform name lookup on each of them
and the consider the results. 

This optimization makes typo correction > 2x faster on a benchmark
example using a single typo (NSstring) in a tiny file that includes
Cocoa.h from a precompiled header, since we are deserializing far less
information now during typo correction.

There is a semantic change here, which is interesting. The presence of
a similarly-named entity that is not visible can now affect typo
correction. This is both good (you won't get weird corrections if the
thing you wanted isn't in scope) and bad (you won't get good
corrections if there is a similarly-named-but-completely-unrelated
thing). Time will tell whether it was a good choice or not.

llvm-svn: 116528
2010-10-14 22:11:03 +00:00
..
ASTCommon.cpp Give a default implementation for ASTDeserializationListener's methods, no functionality change. 2010-10-14 20:14:28 +00:00
ASTCommon.h Refactoring; move the functionality of ASTWriter::GetOrCreateTypeID to the more generic 2010-08-20 16:04:20 +00:00
ASTReader.cpp When performing typo correction, look through the set of known 2010-10-14 22:11:03 +00:00
ASTReaderDecl.cpp Store in PCH the key function of C++ class to avoid deserializing the complete declaration context in order to compute it. 2010-10-14 20:14:38 +00:00
ASTReaderStmt.cpp Eliminate usage of ObjCSuperExpr used for 2010-10-14 16:04:05 +00:00
ASTWriter.cpp Allow deserialization of just the fields of a record, when we want to iterate over them, 2010-10-14 20:14:34 +00:00
ASTWriterDecl.cpp Store in PCH the key function of C++ class to avoid deserializing the complete declaration context in order to compute it. 2010-10-14 20:14:38 +00:00
ASTWriterStmt.cpp Eliminate usage of ObjCSuperExpr used for 2010-10-14 16:04:05 +00:00
CMakeLists.txt Revert "CMake: Update to use standard CMake dependency tracking facilities instead" 2010-09-13 23:54:41 +00:00
GeneratePCH.cpp More PCH -> AST renaming. 2010-08-18 23:57:06 +00:00
Makefile Reintroduce the serialization library, with fixed dependencies. 2010-08-17 20:43:28 +00:00