[llvm-branch-commits] [cfe-branch] r114907 - /cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp

Daniel Dunbar daniel at zuster.org
Mon Sep 27 15:13:09 PDT 2010


Author: ddunbar
Date: Mon Sep 27 17:13:09 2010
New Revision: 114907

URL: http://llvm.org/viewvc/llvm-project?rev=114907&view=rev
Log:
Merge r114810:
--
Author: Douglas Gregor <dgregor at apple.com>
Date:   Mon Sep 27 05:49:58 2010 +0000

    Enable caching of global code completion results in the suggested
    libclang options for editing a translation unit.

Modified:
    cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp

Modified: cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp?rev=114907&r1=114906&r2=114907&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp (original)
+++ cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp Mon Sep 27 17:13:09 2010
@@ -1965,7 +1965,8 @@
 }
 
 unsigned clang_defaultEditingTranslationUnitOptions() {
-  return CXTranslationUnit_PrecompiledPreamble;
+  return CXTranslationUnit_PrecompiledPreamble | 
+         CXTranslationUnit_CacheCompletionResults;
 }
   
 CXTranslationUnit





More information about the llvm-branch-commits mailing list