- May 17, 2013
-
-
Dmitri Gribenko authored
Patch by Seth Fowler. llvm-svn: 182139
-
- May 16, 2013
-
-
Daniel Jasper authored
llvm-svn: 182015
-
Richard Smith authored
a FieldDecl from it, and propagate both into the closure type and the LambdaExpr. You can't do much useful with them yet -- you can't use them within the body of the lambda, because we don't have a representation for "the this of the lambda, not the this of the enclosing context". We also don't have support or a representation for a nested capture of an init-capture yet, which was intended to work despite not being allowed by the current standard wording. llvm-svn: 181985
-
- May 14, 2013
-
-
David Blaikie authored
ASTDumper was already trying to do this & instead got an implicit bool conversion by surprise (thus printing out 0 or 1 instead of the name of the declaration). To avoid that issue & simplify call sites, simply make it the normal/expected operator<<(raw_ostream&, ...) overload & simplify all the existing call sites. (bonus: this function doesn't need to be a member or friend, it's just using public API in DeclarationName) llvm-svn: 181832
-
Daniel Jasper authored
- Remove free variables - Add function clang-format-buffer, e.g. for before-save-hooks - Wrap restoring windows in an unwind-protect Patch by Stephen Gildea! llvm-svn: 181766
-
- May 13, 2013
-
-
Rafael Espindola authored
llvm-svn: 181681
-
Rafael Espindola authored
This patch renames getLinkage to getLinkageInternal. Only code that needs to handle UniqueExternalLinkage specially should call this. Linkage, as defined in the c++ standard, is provided by getFormalLinkage. It maps UniqueExternalLinkage to ExternalLinkage. Most places in the compiler actually want isExternallyVisible, which handles UniqueExternalLinkage as internal. llvm-svn: 181677
-
- May 10, 2013
-
-
Alexander Kornienko authored
Summary: +updated ClangFormat.rst Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D780 llvm-svn: 181617
-
Alexander Kornienko authored
llvm-svn: 181593
-
Alexander Kornienko authored
llvm-svn: 181591
-
Alexander Kornienko authored
Summary: Adds actual config file reading to the clang-format utility. Configuration file name is .clang-format. It is looked up for each input file in its parent directories starting from immediate one. First found .clang-format file is used. When using standard input, .clang-format is searched starting from the current directory. Added -dump-config option to easily create configuration files. Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits, jordan_rose, kimgr Differential Revision: http://llvm-reviews.chandlerc.com/D758 llvm-svn: 181589
-
- May 07, 2013
-
-
Argyrios Kyrtzidis authored
rdar://13680583 llvm-svn: 181352
-
Daniel Jasper authored
This is just a slight improvement for the fix in r181299, which fixes formatting the very last line of a file. llvm-svn: 181303
-
Daniel Jasper authored
Emacs seems to have a line that is just past the last character of the buffers content. This needs to be handled specially so that clang-format is not called with an invalid -offset. llvm-svn: 181299
-
- May 06, 2013
-
-
Argyrios Kyrtzidis authored
llvm-svn: 181237
-
Alexander Kornienko authored
Summary: Patch based on a patch by Ehsan Akhgari. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D750 llvm-svn: 181196
-
- May 04, 2013
-
-
Douglas Gregor authored
llvm-svn: 181070
-
Argyrios Kyrtzidis authored
[Preprocessor] For the MacroExpands preprocessor callback, also pass the MacroArgs object that provides information about the argument tokens for a function macro. llvm-svn: 181065
-
- May 03, 2013
-
-
Bill Wendling authored
llvm-svn: 180968
-
- May 02, 2013
-
-
Bill Wendling authored
llvm-svn: 180950
-
Daniel Jasper authored
Thanks to Avi Drissman! llvm-svn: 180933
-
Anton Yartsev authored
llvm-svn: 180905
-
Anton Yartsev authored
llvm-svn: 180903
-
Anton Yartsev authored
llvm-svn: 180902
-
Anton Yartsev authored
llvm-svn: 180901
-
Anton Yartsev authored
The patch allows Windows users to launch scan-build without any additional preparations in the same way as it described in http://clang-analyzer.llvm.org/scan-build.html. The only thing that should be done to make scan-build work from an arbitrary location is to add scan-build folder to the PATH environment variable. llvm-svn: 180900
-
- May 01, 2013
-
-
Jordan Rose authored
<rdar://problem/13772094> llvm-svn: 180812
-
- Apr 29, 2013
-
-
Jordan Rose authored
At one point in time scan-view allowed absolute paths to reference files within the server root, but this doesn't seem to be used anymore, and caused problems if a server-root-relative path actually matched an absolute path to an existing file. This patch just treats paths as server-root-relative all the time. PR15843 llvm-svn: 180715
-
- Apr 27, 2013
-
-
Argyrios Kyrtzidis authored
[libclang] Introduce clang_Module_getASTFile function that returns the module file where a module object came from. rdar://13743084 llvm-svn: 180643
-
- Apr 26, 2013
-
-
Argyrios Kyrtzidis authored
[PCH/modules] Require the preprocessing record option to match the used PCH, if modules are enabled. The preprocessing record becomes important when modules are enabled, since it is used to calculate the module cache hash. llvm-svn: 180635
-
- Apr 25, 2013
-
-
Daniel Jasper authored
This patch ensure that nothing scrolls even if the same buffer is opened in multiple windows. llvm-svn: 180252
-
- Apr 24, 2013
-
-
Alexander Kornienko authored
Summary: Added support for multiple input files, that can be used both with and without in-place edit (-i) option. Added checks for -offset and -length options: don't allow them on multiple files, check that they don't fall outside input file, made both options unsigned, so that there's no need to check for negative values. Removed "-1 can be used for end-of-file" from -length description. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D719 llvm-svn: 180185
-
Ted Kremenek authored
Fixes PR 10124. Patch by Jens Kilian. Thanks to Nikola Smiljanic for following up. llvm-svn: 180177
-
Ted Kremenek authored
Apparently there are... llvm-svn: 180176
-
Ted Kremenek authored
llvm-svn: 180174
-
- Apr 23, 2013
-
-
Argyrios Kyrtzidis authored
[libclang] Introduce a CXCursor_ObjCSelfExpr cursor, which is the equivalent of CXCursor_CXXThisExpr for C++ code. rdar://13717006 llvm-svn: 180127
-
Ted Kremenek authored
llvm-svn: 180073
-
- Apr 21, 2013
-
-
Richard Smith authored
Add a CXXDefaultInitExpr, analogous to CXXDefaultArgExpr, and use it both in CXXCtorInitializers and in InitListExprs to represent a default initializer. There's an additional complication here: because the default initializer can refer to the initialized object via its 'this' pointer, we need to make sure that 'this' points to the right thing within the evaluation. llvm-svn: 179958
-
- Apr 19, 2013
-
-
Argyrios Kyrtzidis authored
[libclang] Introduce clang_Cursor_isVariadic, which returns non-zero if the given cursor is a variadic function or method. rdar://13667150 llvm-svn: 179819
-
Argyrios Kyrtzidis authored
[libclang] Introduce clang_Cursor_getObjCDeclQualifiers, to query for 'ObjC Qualifiers' written next to the return and parameter types in an ObjC method declarations. rdar://13676977 llvm-svn: 179816
-