- May 10, 2013
-
-
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
-
Argyrios Kyrtzidis authored
[libclang] Introduce clang_Cursor_getObjCPropertyAttributes to query the written attributes in a property declaration. rdar://13684512 llvm-svn: 179803
-
- Apr 18, 2013
-
-
Argyrios Kyrtzidis authored
Patch by Doug. rdar://13684618 llvm-svn: 179769
-
- Apr 17, 2013
-
-
Daniel Jasper authored
scripts. llvm-svn: 179676
-
- Apr 16, 2013
-
-
Tareq A. Siraj authored
Add CapturedDecl to be the DeclContext for CapturedStmt, and perform semantic analysis. Currently captures all variables by reference. TODO: templates Author: Ben Langmuir <ben.langmuir@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D433 llvm-svn: 179618
-
Tareq A. Siraj authored
CapturedStmt can be used to implement generic function outlining as described in http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-January/027540.html. CapturedStmt is not exposed to the C api. Serialization and template support are pending. Author: Wei Pan <wei.pan@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D370 llvm-svn: 179615
-
John McCall authored
references thereto. Patch by Tong Shen! llvm-svn: 179585
-
- Apr 12, 2013
-
-
Argyrios Kyrtzidis authored
[libclang] Introduce clang_Location_isInSystemHeader to check if a location resides in a system header. This is a modified patch provided from Mikołaj Siedlarek! llvm-svn: 179384
-
Daniel Jasper authored
llvm-svn: 179377
-
Daniel Jasper authored
The new emacs integration is simpler, does not save the current file before reformatting and ensures that emacs does not scroll as a result of formatting. Also explicitly set the style in clang-format tests to make them more robust. llvm-svn: 179372
-