- Feb 05, 2011
-
-
Douglas Gregor authored
overridden via remapping. Thus, when we create a "virtual" file in the file manager, we still stat() the real file that lives behind it so that we can provide proper uniquing based on inodes. This helps keep the file manager much more consistent. To take advantage of this when reparsing files in libclang, we disable the use of the stat() cache when reparsing or performing code completion, since the stat() cache is very likely to be out of date in this use case. llvm-svn: 124971
-
- Feb 04, 2011
-
-
Douglas Gregor authored
or source locations that refer into a macro instantiation, delete all of the Fix-Its on that diagnostic. llvm-svn: 124833
-
- Feb 03, 2011
-
-
Douglas Gregor authored
whose inode has changed since the file was first created and that is being seen through a different path name (e.g., due to symlinks or relative path elements), such that its FileEntry pointer doesn't match a known FileEntry pointer. Since this requires a system call (to stat()), we only perform this deeper checking if we can't find the file by comparing FileEntry pointers. Also, add a micro-optimization where we don't bother to compute line numbers when given the location (1, 1). This improves the efficiency of clang_getLocationForOffset(). llvm-svn: 124800
-
Rafael Espindola authored
links. llvm-svn: 124776
-
Douglas Gregor authored
redundant searches in the string. No functionality change. llvm-svn: 124760
-
- Feb 02, 2011
-
-
Douglas Gregor authored
on that name. Canonicalization eliminates silliness such as "." and "foo/.." that breaks the uniquing of files in the presence of virtual files or files whose inode numbers have changed during parsing/re-parsing. c-index-test isn't able to create this crazy situation, so I've resorted to testing outside of the Clang tree. Fixes <rdar://problem/8928220>. Note that this hackery will go away once we have a real virtual file system on which we can layer FileManager; the virtual-files hack is showing cracks. llvm-svn: 124754
-
- Feb 01, 2011
-
-
Douglas Gregor authored
llvm-svn: 124660
-
- Jan 31, 2011
-
-
Douglas Gregor authored
the disappearance/alteration of files. llvm-svn: 124616
-
Douglas Gregor authored
client. Fixes a libclang leak. llvm-svn: 124614
-
- Jan 27, 2011
-
-
Douglas Gregor authored
llvm-svn: 124441
-
Axel Naumann authored
TextDiagnosticPrinter.cpp: Show diagnostics as far as possible even with invalid PresomedLoc, instead of just silencing it. FileManager.cpp: Allow virtual files in nonexistent directories. FileManager.cpp: Close FileDescriptor for virtual files that correspond to actual files. FileManager.cpp: Enable virtual files to be created even for files that were flagged as NON_EXISTENT_FILE, e.g. by a prior (unsuccessful) addFile(). ASTReader.cpp: Read a PCH even if the original source files cannot be found. Add a test for reading a PCH of a file that has been removed and diagnostics referencing that file. llvm-svn: 124374
-
- Jan 17, 2011
-
-
NAKAMURA Takumi authored
llvm-svn: 123691
-
NAKAMURA Takumi authored
It should be defined as-is. Some headers would detect existence of __declspec and use one. llvm-svn: 123690
-
NAKAMURA Takumi authored
llvm-svn: 123689
-
- Jan 14, 2011
-
-
Argyrios Kyrtzidis authored
Addresses rdar://8435969&8852495 llvm-svn: 123462
-
- Jan 12, 2011
-
-
Douglas Gregor authored
llvm-svn: 123320
-
- Jan 07, 2011
-
-
Fariborz Jahanian authored
Fix an unexpected hickup caused by exceeding size of generated table (and a misleading comment). Improve on help message for -fapple-kext. llvm-svn: 123003
-
- Jan 06, 2011
-
-
Bob Wilson authored
Patch by Sylvère Teissier. llvm-svn: 122965
-
Roman Divacky authored
Fix the width and align of bool type on Darwin to be 32bits while keeping it 8 everywhere else. Change the definition of va_list to default to SV4 ABI one and let darwin subtarget override this. Both changes submitted by Nathan Whitehorn and reviewed by Rafael Espindola. llvm-svn: 122956
-
- Dec 29, 2010
-
-
Roman Divacky authored
llvm-svn: 122629
-
- Dec 26, 2010
-
-
Chris Lattner authored
16-bits in size. Implement this by splitting WChar into two enums, like we have for char. This fixes a miscompmilation of XULRunner, PR8856. llvm-svn: 122558
-
- Dec 24, 2010
-
-
Argyrios Kyrtzidis authored
Handle locations coming from macro instantiations properly in SourceManager::isBeforeInTranslationUnit(). Fixes rdar://8790245 and http://llvm.org/PR8821. llvm-svn: 122536
-
- Dec 21, 2010
-
-
Douglas Gregor authored
inconsistent with the type that the builtin *should* have, forget about the builtin altogether: we don't want subsequence analyses, CodeGen, etc., to think that we have a proper builtin function. C is protected from errors here because it allows one to use a library builtin without having a declaration, and detects inconsistent (re-)declarations of builtins during declaration merging. C++ was unprotected, and therefore would crash. Fixes PR8839. llvm-svn: 122351
-
Michael J. Spencer authored
llvm-svn: 122340
-
- Dec 19, 2010
-
-
Nick Lewycky authored
llvm-svn: 122194
-
- Dec 17, 2010
-
-
Michael J. Spencer authored
llvm-svn: 122087
-
- Dec 16, 2010
-
-
Michael J. Spencer authored
llvm-svn: 121956
-
- Dec 15, 2010
-
-
Argyrios Kyrtzidis authored
Diagnostic pragmas are broken because we don't keep track of the diagnostic state changes and we only check the current/latest state. Problems manifest if a diagnostic is emitted for a source line that has different diagnostic state than the current state; this can affect a lot of places, like C++ inline methods, template instantiations, the lexer, etc. Fix the issue by having the Diagnostic object keep track of the source location of the pragmas so that it is able to know what is the diagnostic state at any given source location. Fixes rdar://8365684. llvm-svn: 121873
-
- Dec 12, 2010
-
-
Wesley Peck authored
llvm-svn: 121640
-
- Dec 09, 2010
-
-
Michael J. Spencer authored
llvm-svn: 121378
-
- Dec 02, 2010
-
-
Chris Lattner authored
llvm-svn: 120688
-
- Nov 30, 2010
-
-
Fariborz Jahanian authored
a specific language. We are adding such language info. by extensing Builtins.def and via a language flag added to LIBBUILTIN/BUILTIN and check for that when deciding a name is builtin or not. Implements //rdar://8689273. llvm-svn: 120429
-
- Nov 29, 2010
-
-
Michael J. Spencer authored
llvm-svn: 120297
-
- Nov 24, 2010
-
-
Francois Pichet authored
- FileEntry::operator= is needed on Win32. - There was an error in the S_ISDIR() macro. llvm-svn: 120079
-
- Nov 23, 2010
-
-
Chris Lattner authored
followed by an open for every source file we open, probe the file system with 'open' and then do an fstat when it succeeds. open+fstat is faster than stat+open because the kernel only has to perform the string->inode mapping once. Presumably it gets faster the deeper in your filesystem a lookup happens. For -Eonly on cocoa.h, this reduces system time from 0.042s to 0.039s on my machine, a 7.7% speedup. llvm-svn: 120066
-
Chris Lattner authored
leak a filedescriptor if a client ever starts returning one. llvm-svn: 120062
-
Chris Lattner authored
llvm-svn: 120061
-
Chris Lattner authored
pointer that is passed down through the APIs, and make FileSystemStatCache::get be the one that filters out directory lookups that hit files. This also paves the way to have stat queries be able to return opened files. llvm-svn: 120060
-
Chris Lattner authored
which simplifies clients and is important for future directions. Add a FD member to FileEntry which isn't used but will be shortly. llvm-svn: 120056
-
Chris Lattner authored
llvm-svn: 120048
-