[cfe-commits] r167783 - in /cfe/trunk: include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclAttr.cpp test/SemaCXX/warn-unused-result.cpp

2012-11-12 Thread Kaelyn Uhrain
Author: rikka Date: Mon Nov 12 17:48:05 2012 New Revision: 167783 URL: http://llvm.org/viewvc/llvm-project?rev=167783view=rev Log: Enable C++11 attribute syntax for warn_unused_result and allow it to be applied to CXXRecordDecls, where functions with that return type will inherit the

[cfe-commits] r167791 - in /cfe/trunk: include/clang/Basic/Attr.td lib/Sema/SemaDeclAttr.cpp test/SemaCXX/warn-unused-result.cpp

2012-11-12 Thread Kaelyn Uhrain
Author: rikka Date: Mon Nov 12 18:18:47 2012 New Revision: 167791 URL: http://llvm.org/viewvc/llvm-project?rev=167791view=rev Log: A couple of small fixes to r167783 Modified: cfe/trunk/include/clang/Basic/Attr.td cfe/trunk/lib/Sema/SemaDeclAttr.cpp

Re: [cfe-commits] r167783 - in /cfe/trunk: include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclAttr.cpp test/SemaCXX/warn-unused-result.cpp

2012-11-12 Thread Kaelyn Uhrain
On Mon, Nov 12, 2012 at 3:56 PM, Richard Smith rich...@metafoo.co.ukwrote: On Mon, Nov 12, 2012 at 3:48 PM, Kaelyn Uhrain ri...@google.com wrote: Author: rikka Date: Mon Nov 12 17:48:05 2012 New Revision: 167783 URL: http://llvm.org/viewvc/llvm-project?rev=167783view=rev Log

[cfe-commits] r167873 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/SemaCXX/warn-unused-result.cpp

2012-11-13 Thread Kaelyn Uhrain
Author: rikka Date: Tue Nov 13 15:23:31 2012 New Revision: 167873 URL: http://llvm.org/viewvc/llvm-project?rev=167873view=rev Log: For classes that have the warn_unused_result attribute, don't apply the attribute to the class' methods even when they return an instance of the class (e.g.

Re: [cfe-commits] r167873 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/SemaCXX/warn-unused-result.cpp

2012-11-13 Thread Kaelyn Uhrain
'. …except for operator on streams. Hm. Jordan On Nov 13, 2012, at 13:23 , Kaelyn Uhrain ri...@google.com wrote: Author: rikka Date: Tue Nov 13 15:23:31 2012 New Revision: 167873 URL: http://llvm.org/viewvc/llvm-project?rev=167873view=rev Log: For classes that have

[cfe-commits] r168317 - in /cfe/trunk: lib/Sema/SemaLookup.cpp test/SemaCXX/typo-correction.cpp

2012-11-19 Thread Kaelyn Uhrain
Author: rikka Date: Mon Nov 19 12:49:53 2012 New Revision: 168317 URL: http://llvm.org/viewvc/llvm-project?rev=168317view=rev Log: When adding a NamedDecl to a correction, add the underlying Decl (via getUnderlyingDecl()) so that derivatives of CorrectionCandidateCallback::ValidateCandidate(...)

[cfe-commits] r166711 - in /cfe/trunk/test/PCH: Inputs/badpch-dir.h.gch/ Inputs/badpch-dir.h.gch/.keep Inputs/badpch-empty.h.gch badpch-dir.h.gch/.keep badpch-empty.h.gch badpch.c

2012-10-25 Thread Kaelyn Uhrain
Author: rikka Date: Thu Oct 25 14:43:57 2012 New Revision: 166711 URL: http://llvm.org/viewvc/llvm-project?rev=166711view=rev Log: Move the input files for test/PCH/badpch.c under test/PCH/Inputs/. Added: cfe/trunk/test/PCH/Inputs/badpch-dir.h.gch/

[cfe-commits] r148382 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaExpr.cpp lib/Sema/SemaExprCXX.cpp lib/Sema/SemaOverload.cpp

2012-01-17 Thread Kaelyn Uhrain
Author: rikka Date: Tue Jan 17 23:58:54 2012 New Revision: 148382 URL: http://llvm.org/viewvc/llvm-project?rev=148382view=rev Log: Convert DiagnoseEmptyLookup to use correction callbacks. No new unit tests yet as there is no behavioral change (except for slightly more specific filtering in

[cfe-commits] r148420 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/Sema/implicit-decl.c test/SemaCXX/typo-correction.cpp

2012-01-18 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jan 18 15:41:41 2012 New Revision: 148420 URL: http://llvm.org/viewvc/llvm-project?rev=148420view=rev Log: Convert SemaDecl.cpp to pass callback objects to CorrectTypo. Includes tests highlighting the cases where accuracy has improved (there is one call that does no

[cfe-commits] r148441 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaLookup.cpp

2012-01-18 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jan 18 18:33:34 2012 New Revision: 148441 URL: http://llvm.org/viewvc/llvm-project?rev=148441view=rev Log: Remove the now-unused CorrectTypoContext enum. Modified: cfe/trunk/include/clang/Sema/Sema.h cfe/trunk/lib/Sema/SemaLookup.cpp Modified:

Re: [cfe-commits] Extend Attributes to 64 bits (wrapped in a class), add one more attribute for address safety checking

2012-01-19 Thread Kaelyn Uhrain
On Thu, Jan 19, 2012 at 9:56 AM, Kostya Serebryany k...@google.com wrote: On Thu, Jan 19, 2012 at 1:18 AM, Anton Korobeynikov an...@korobeynikov.info wrote: Hi Kostya, The patches are attached, the llvm patch is also published here: http://codereview.appspot.com/5544058/ What is the

Re: [cfe-commits] Extend Attributes to 64 bits (wrapped in a class), add one more attribute for address safety checking

2012-01-19 Thread Kaelyn Uhrain
On Thu, Jan 19, 2012 at 10:16 AM, Kostya Serebryany k...@google.com wrote: On Thu, Jan 19, 2012 at 10:14 AM, Kaelyn Uhrain ri...@google.com wrote: On Thu, Jan 19, 2012 at 9:56 AM, Kostya Serebryany k...@google.comwrote: On Thu, Jan 19, 2012 at 1:18 AM, Anton Korobeynikov

[cfe-commits] r148720 - in /cfe/trunk: lib/Sema/SemaLookup.cpp test/SemaCXX/typo-correction.cpp

2012-01-23 Thread Kaelyn Uhrain
Author: rikka Date: Mon Jan 23 14:18:59 2012 New Revision: 148720 URL: http://llvm.org/viewvc/llvm-project?rev=148720view=rev Log: In CorrectTypo, use the cached correction as a starting point instead. Previously, for unqualified lookups, a positive cache hit is used as the only non-keyword

Re: [cfe-commits] PATCH: In CorrectTypo, use the cached correction as a starting point instead. (issue 5570046)

2012-01-23 Thread Kaelyn Uhrain
Please ignore this review request. I screwed up the patch upload AND the description (after returning from lunch, I'd forgotten I hadn't submitted the changes I meant to have reviewed to my local git repo yet). Thanks, Kaelyn On Mon, Jan 23, 2012 at 12:39 PM, ri...@google.com wrote: Reviewers:

[cfe-commits] r148850 - /cfe/trunk/lib/Sema/SemaDecl.cpp

2012-01-24 Thread Kaelyn Uhrain
Author: rikka Date: Tue Jan 24 13:45:35 2012 New Revision: 148850 URL: http://llvm.org/viewvc/llvm-project?rev=148850view=rev Log: Small code cleanup/simplification in Sema::ClassifyName. Modified: cfe/trunk/lib/Sema/SemaDecl.cpp Modified: cfe/trunk/lib/Sema/SemaDecl.cpp URL:

[cfe-commits] r148962 - in /cfe/trunk: include/clang/Sema/TypoCorrection.h lib/Sema/SemaOverload.cpp test/SemaCXX/typo-correction.cpp

2012-01-25 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jan 25 12:37:44 2012 New Revision: 148962 URL: http://llvm.org/viewvc/llvm-project?rev=148962view=rev Log: Add custom callback object for typo correction in BuildRecoveryCallExpr. The new callback, in addition to limiting which keywords to include in the pool of typo

Re: [cfe-commits] PATCH: Avoid correcting unknown identifiers to types where types aren't allowed. (issue 5572049)

2012-01-25 Thread Kaelyn Uhrain
Ping? I'd at least like someone more familiar with the parser to give this patch a once-over before committing it. Thanks, Kaelyn On Mon, Jan 23, 2012 at 12:45 PM, ri...@google.com wrote: Reviewers: kyrtzidis_apple.com, Description: Pass a typo correction callback object from ParseCastExpr

[cfe-commits] r148973 - in /cfe/trunk: include/clang/Parse/Parser.h include/clang/Sema/Sema.h lib/Parse/ParseExpr.cpp lib/Parse/ParseExprCXX.cpp lib/Sema/SemaExpr.cpp test/SemaCXX/typo-correction.cpp

2012-01-25 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jan 25 14:49:08 2012 New Revision: 148973 URL: http://llvm.org/viewvc/llvm-project?rev=148973view=rev Log: Avoid correcting unknown identifiers to types where types aren't allowed. Pass a typo correction callback object from ParseCastExpr to Sema::ActOnIdExpression to be

[cfe-commits] r148979 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaOverload.cpp lib/Sema/SemaStmt.cpp test/SemaCXX/typo-correction.cpp

2012-01-25 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jan 25 15:11:35 2012 New Revision: 148979 URL: http://llvm.org/viewvc/llvm-project?rev=148979view=rev Log: Allow typo correction to be disabled in BuildOverloadedCallExpr variant. This suppresses typo correction for auto-generated call expressions such as to 'begin' or

[cfe-commits] r149451 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaCXXScopeSpec.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaDeclObjC.cpp lib/Sema/SemaExpr.cpp lib/Sema/S

2012-01-31 Thread Kaelyn Uhrain
Author: rikka Date: Tue Jan 31 17:49:25 2012 New Revision: 149451 URL: http://llvm.org/viewvc/llvm-project?rev=149451view=rev Log: Make the callback object to Sema::CorrectTypo mandatory. Modified: cfe/trunk/include/clang/Sema/Sema.h cfe/trunk/lib/Sema/SemaCXXScopeSpec.cpp

[cfe-commits] r149953 - /cfe/trunk/lib/Sema/SemaLookup.cpp

2012-02-06 Thread Kaelyn Uhrain
Author: rikka Date: Mon Feb 6 19:32:58 2012 New Revision: 149953 URL: http://llvm.org/viewvc/llvm-project?rev=149953view=rev Log: Remove the unused TypoCorrectionConsumer::MaxEditDistance. MaxEditDistance was effectively unused as it being initialized to the max unsigned valued but never

[cfe-commits] [PATCH] Use several weighted factors to determine typo candidate viablity.

2012-02-13 Thread Kaelyn Uhrain
Replace the simple Levenshtein edit distance for typo correction candidates--and the hacky way adding namespace qualifiers would affect the edit distance--with a synthetic edit distance comprised of several factors and their relative weights. This also allows the typo correction callback object

[cfe-commits] r150495 - in /cfe/trunk: include/clang/Sema/TypoCorrection.h lib/Sema/SemaLookup.cpp test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp

2012-02-14 Thread Kaelyn Uhrain
Author: rikka Date: Tue Feb 14 12:56:48 2012 New Revision: 150495 URL: http://llvm.org/viewvc/llvm-project?rev=150495view=rev Log: Use several weighted factors to determine typo candidate viablity. Replace the simple Levenshtein edit distance for typo correction candidates--and the hacky way

[cfe-commits] r150622 - in /cfe/trunk: lib/Sema/SemaLookup.cpp test/Parser/cxx-using-directive.cpp test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp

2012-02-15 Thread Kaelyn Uhrain
Author: rikka Date: Wed Feb 15 16:14:18 2012 New Revision: 150622 URL: http://llvm.org/viewvc/llvm-project?rev=150622view=rev Log: Improve typo correction involving nested name specifiers. Snooping in other namespaces when the identifier being corrected is already qualified (i.e. a valid

[cfe-commits] r150629 - /cfe/trunk/lib/Sema/SemaLookup.cpp

2012-02-15 Thread Kaelyn Uhrain
Author: rikka Date: Wed Feb 15 16:59:03 2012 New Revision: 150629 URL: http://llvm.org/viewvc/llvm-project?rev=150629view=rev Log: Silence a valgrind warning, and remove an unused var. Modified: cfe/trunk/lib/Sema/SemaLookup.cpp Modified: cfe/trunk/lib/Sema/SemaLookup.cpp URL:

[cfe-commits] r150735 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/SemaCXX/typo-correction.cpp

2012-02-16 Thread Kaelyn Uhrain
Author: rikka Date: Thu Feb 16 16:40:59 2012 New Revision: 150735 URL: http://llvm.org/viewvc/llvm-project?rev=150735view=rev Log: Avoid infinite mutual recursion in DiagnoseInvalidRedeclaration. Don't try to typo-correct a method redeclaration to declarations not in the current record as it

[cfe-commits] r151112 - in /cfe/trunk: include/clang/Parse/Parser.h lib/Parse/ParseExpr.cpp lib/Parse/ParseTemplate.cpp test/SemaCXX/typo-correction.cpp

2012-02-21 Thread Kaelyn Uhrain
Author: rikka Date: Tue Feb 21 19:03:07 2012 New Revision: 151112 URL: http://llvm.org/viewvc/llvm-project?rev=151112view=rev Log: Fix typo correction of template arguments to once again allow type names. Modified: cfe/trunk/include/clang/Parse/Parser.h cfe/trunk/lib/Parse/ParseExpr.cpp

[cfe-commits] r157085 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaTemplate.cpp test/SemaTemplate/typename-specifier.cpp

2012-05-18 Thread Kaelyn Uhrain
Author: rikka Date: Fri May 18 18:42:49 2012 New Revision: 157085 URL: http://llvm.org/viewvc/llvm-project?rev=157085view=rev Log: Suggest adding 'typename' when it would make the compiler accept the template argument expression as a type. Modified:

[cfe-commits] r157781 - /cfe/trunk/lib/Sema/SemaLookup.cpp

2012-05-31 Thread Kaelyn Uhrain
Author: rikka Date: Thu May 31 18:32:58 2012 New Revision: 157781 URL: http://llvm.org/viewvc/llvm-project?rev=157781view=rev Log: In TypoCorrectionConsumer, BestResults to CorrectionResults to lessen the confusion among all of the uses of Best* in relation to the set of possible typo correction

[cfe-commits] r157823 - in /cfe/trunk: lib/Sema/SemaLookup.cpp test/SemaCXX/typo-correction.cpp

2012-06-01 Thread Kaelyn Uhrain
Author: rikka Date: Fri Jun 1 13:11:16 2012 New Revision: 157823 URL: http://llvm.org/viewvc/llvm-project?rev=157823view=rev Log: Don't allow multiple correction candidates that have the same identifier but different nested name specifiers to quietly clobber each other so only one remains if

[cfe-commits] r158109 - in /cfe/trunk: lib/Sema/SemaLookup.cpp test/CXX/temp/temp.spec/temp.expl.spec/p3.cpp test/Parser/cxx-using-directive.cpp test/SemaCXX/elaborated-type-specifier.cpp test/SemaCXX

2012-06-06 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jun 6 15:54:51 2012 New Revision: 158109 URL: http://llvm.org/viewvc/llvm-project?rev=158109view=rev Log: Allow CorrectTypo to add/modify nested name qualifiers to typos that are otherwise too short to try to correct. The TODOs added to two of the tests are for existing

[cfe-commits] r158177 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/SemaCXX/function-redecl.cpp test/SemaCXX/nested-name-spec.cpp

2012-06-07 Thread Kaelyn Uhrain
Author: rikka Date: Thu Jun 7 18:57:08 2012 New Revision: 158177 URL: http://llvm.org/viewvc/llvm-project?rev=158177view=rev Log: Ignore corrections to functions with bodies when deciding which correction to use for an invalid function redeclaration. Modified:

[cfe-commits] r158178 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/FixIt/fixit.cpp

2012-06-07 Thread Kaelyn Uhrain
Author: rikka Date: Thu Jun 7 18:57:12 2012 New Revision: 158178 URL: http://llvm.org/viewvc/llvm-project?rev=158178view=rev Log: Teach the FixIt in DiagnoseInvalidRedeclaration how to replace the written nested name specifiers in addition to the function's identifier when the correction has a

[cfe-commits] r158185 - in /cfe/trunk: lib/Sema/SemaTemplate.cpp test/SemaTemplate/typename-specifier.cpp

2012-06-07 Thread Kaelyn Uhrain
Author: rikka Date: Thu Jun 7 20:07:26 2012 New Revision: 158185 URL: http://llvm.org/viewvc/llvm-project?rev=158185view=rev Log: Fix up the 'typename' suggestion logic introduced in r157085, based on feedback from Doug Gregor. Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp

Re: [cfe-commits] r157085 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaTemplate.cpp test/SemaTemplate/typename-specifier.cpp

2012-06-07 Thread Kaelyn Uhrain
On Thu, Jun 7, 2012 at 3:47 PM, Douglas Gregor dgre...@apple.com wrote: On May 18, 2012, at 4:42 PM, Kaelyn Uhrain wrote: Author: rikka Date: Fri May 18 18:42:49 2012 New Revision: 157085 URL: http://llvm.org/viewvc/llvm-project?rev=157085view=rev Log: Suggest adding 'typename

Re: [cfe-commits] r158178 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/FixIt/fixit.cpp

2012-06-07 Thread Kaelyn Uhrain
On Thu, Jun 7, 2012 at 5:15 PM, Douglas Gregor dgre...@apple.com wrote: On Jun 7, 2012, at 4:57 PM, Kaelyn Uhrain wrote: Author: rikka Date: Thu Jun 7 18:57:12 2012 New Revision: 158178 URL: http://llvm.org/viewvc/llvm-project?rev=158178view=rev Log: Teach the FixIt

[cfe-commits] r158406 - /cfe/trunk/lib/AST/MicrosoftMangle.cpp

2012-06-13 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jun 13 12:05:13 2012 New Revision: 158406 URL: http://llvm.org/viewvc/llvm-project?rev=158406view=rev Log: Remove the trailing backslash from the comment to remove the warning about a multi-line comment, fixing builds with e.g. -Werror=comment enabled. Modified:

[cfe-commits] r158572 - in /cfe/trunk: include/clang/Parse/Parser.h include/clang/Sema/Sema.h lib/Parse/ParseExprCXX.cpp lib/Parse/ParseObjc.cpp lib/Sema/SemaDecl.cpp

2012-06-15 Thread Kaelyn Uhrain
Author: rikka Date: Fri Jun 15 18:45:51 2012 New Revision: 158572 URL: http://llvm.org/viewvc/llvm-project?rev=158572view=rev Log: Move isCXXSimpleTypeSpecifier from Parser to Sema and tweak it for wider use. Modified: cfe/trunk/include/clang/Parse/Parser.h

[cfe-commits] r158573 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp test/Parser/recovery.cpp

2012-06-15 Thread Kaelyn Uhrain
Author: rikka Date: Fri Jun 15 18:45:58 2012 New Revision: 158573 URL: http://llvm.org/viewvc/llvm-project?rev=158573view=rev Log: Recover when correcting an unknown type name to a keyword like struct. Modified: cfe/trunk/include/clang/Sema/Sema.h cfe/trunk/lib/Parse/ParseDecl.cpp

[cfe-commits] r158691 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaOverload.cpp test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-cxx03-extra-copy.cpp test/Misc/integer-literal-pr

2012-06-18 Thread Kaelyn Uhrain
Author: rikka Date: Mon Jun 18 19:37:47 2012 New Revision: 158691 URL: http://llvm.org/viewvc/llvm-project?rev=158691view=rev Log: Improve the error message when a function overload candidate is rejected because it expects a reference and receives a non-l-value. For example, given: int

[cfe-commits] r158733 - /cfe/trunk/lib/Sema/SemaOverload.cpp

2012-06-19 Thread Kaelyn Uhrain
Author: rikka Date: Tue Jun 19 13:38:00 2012 New Revision: 158733 URL: http://llvm.org/viewvc/llvm-project?rev=158733view=rev Log: Remove some debugging code that snuck into r158691. Modified: cfe/trunk/lib/Sema/SemaOverload.cpp Modified: cfe/trunk/lib/Sema/SemaOverload.cpp URL:

[cfe-commits] r158772 - in /cfe/trunk: include/clang/Basic/DiagnosticSerializationKinds.td lib/Serialization/ASTReader.cpp test/PCH/badpch-dir.h.gch/ test/PCH/badpch-dir.h.gch/.keep test/PCH/badpch-em

2012-06-19 Thread Kaelyn Uhrain
Author: rikka Date: Tue Jun 19 19:36:03 2012 New Revision: 158772 URL: http://llvm.org/viewvc/llvm-project?rev=158772view=rev Log: Add the PCH file name to the message about not being able to read the PCH. Also add a couple of unit tests to check the invalid-PCH error messages to satisfy PR4568

Re: [cfe-commits] r158772 - in /cfe/trunk: include/clang/Basic/DiagnosticSerializationKinds.td lib/Serialization/ASTReader.cpp test/PCH/badpch-dir.h.gch/ test/PCH/badpch-dir.h.gch/.keep test/PCH/badpc

2012-06-20 Thread Kaelyn Uhrain
, The test cfe/trunk/test/PCH/badpch.c fails on builder http://lab.llvm.org:8011/builders/clang-X86_64-freebsd/builds/3155 Please have a look at this? Thanks Galina On Tue, Jun 19, 2012 at 5:36 PM, Kaelyn Uhrain ri...@google.com wrote: Author: rikka Date: Tue Jun 19 19:36:03 2012 New

Re: [cfe-commits] r158772 - in /cfe/trunk: include/clang/Basic/DiagnosticSerializationKinds.td lib/Serialization/ASTReader.cpp test/PCH/badpch-dir.h.gch/ test/PCH/badpch-dir.h.gch/.keep test/PCH/badpc

2012-06-20 Thread Kaelyn Uhrain
This should be fixed in r158841 On Wed, Jun 20, 2012 at 11:25 AM, Kaelyn Uhrain ri...@google.com wrote: This looks like a difference in how the calls clang uses to open and read pch files behave under FreeBSD vs Linux when operating on a directory instead of a normal file. I'm looking deeper

[cfe-commits] r159046 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Parse/ParseDeclCXX.cpp lib/Sema/SemaDecl.cpp test/SemaCXX/typo-correction.cpp

2012-06-22 Thread Kaelyn Uhrain
Author: rikka Date: Fri Jun 22 18:37:05 2012 New Revision: 159046 URL: http://llvm.org/viewvc/llvm-project?rev=159046view=rev Log: Perform typo correction for base class specifiers. Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td cfe/trunk/lib/Parse/ParseDeclCXX.cpp

[cfe-commits] r159464 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/SemaCXX/typo-correction.cpp

2012-06-29 Thread Kaelyn Uhrain
Author: rikka Date: Fri Jun 29 16:30:39 2012 New Revision: 159464 URL: http://llvm.org/viewvc/llvm-project?rev=159464view=rev Log: In Sema::ClassifyName, try to avoid nonsensical corrections to keywords when doing type correction. Modified: cfe/trunk/lib/Sema/SemaDecl.cpp

Re: [cfe-commits] r159464 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/SemaCXX/typo-correction.cpp

2012-06-29 Thread Kaelyn Uhrain
On Fri, Jun 29, 2012 at 2:36 PM, David Blaikie dblai...@gmail.com wrote: On Fri, Jun 29, 2012 at 2:30 PM, Kaelyn Uhrain ri...@google.com wrote: Author: rikka Date: Fri Jun 29 16:30:39 2012 New Revision: 159464 URL: http://llvm.org/viewvc/llvm-project?rev=159464view=rev Log: In Sema

[cfe-commits] [PATCH] Add callback object to Sema::CorrectTypo

2012-01-10 Thread Kaelyn Uhrain
This patch is a rough draft of my attempt to replace the Sema::CorrectTypoContext enum with a callback object for performing finer grained validation of potential typo corrections. This version just includes a wrapper for Sema::CorrectTypo to translate a CorrectTypoContext value into a

Re: [cfe-commits] [PATCH] Add callback object to Sema::CorrectTypo

2012-01-11 Thread Kaelyn Uhrain
Way too early in the morning... originally hit Reply instead of Reply All and then when I resent the email to the mailing list I forgot to attach the patch. D'oh! On Wed, Jan 11, 2012 at 9:53 AM, Kaelyn Uhrain ri...@google.com wrote: On Tue, Jan 10, 2012 at 8:23 PM, Douglas Gregor dgre

Re: [cfe-commits] [PATCH] Add callback object to Sema::CorrectTypo

2012-01-11 Thread Kaelyn Uhrain
On Tue, Jan 10, 2012 at 8:23 PM, Douglas Gregor dgre...@apple.com wrote: On Jan 10, 2012, at 5:06 PM, Kaelyn Uhrain wrote: This patch is a rough draft of my attempt to replace the Sema::CorrectTypoContext enum with a callback object for performing finer grained validation of potential typo

[cfe-commits] r147962 - in /cfe/trunk: include/clang/Sema/Sema.h include/clang/Sema/TypoCorrection.h lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaLookup.cpp test/SemaCXX/typo-correction.cpp

2012-01-11 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jan 11 13:37:46 2012 New Revision: 147962 URL: http://llvm.org/viewvc/llvm-project?rev=147962view=rev Log: Add initial callback object support to Sema::CorrectTypo. Also includes two examples of the callback: a wrapper/replacement for the CorrectTypoContext enum, and a

Re: [cfe-commits] r147962 - in /cfe/trunk: include/clang/Sema/Sema.h include/clang/Sema/TypoCorrection.h lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaLookup.cpp test/SemaCXX/typo-correction.cpp

2012-01-11 Thread Kaelyn Uhrain
On Wed, Jan 11, 2012 at 11:49 AM, Chandler Carruth chandl...@gmail.comwrote: A few comments inline... On Wed, Jan 11, 2012 at 11:37 AM, Kaelyn Uhrain ri...@google.com wrote: Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema

[cfe-commits] r147968 - in /cfe/trunk: lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaLookup.cpp test/SemaCXX/typo-correction.cpp

2012-01-11 Thread Kaelyn Uhrain
Author: rikka Date: Wed Jan 11 15:17:51 2012 New Revision: 147968 URL: http://llvm.org/viewvc/llvm-project?rev=147968view=rev Log: Fix the caching in CorrectTypo so that other non-keyword identifiers are still added if the cached correction fails validation. Also fix a copy-and-paste error in a

[cfe-commits] r148037 - in /cfe/trunk: lib/Sema/SemaInit.cpp test/SemaCXX/typo-correction.cpp

2012-01-12 Thread Kaelyn Uhrain
Author: rikka Date: Thu Jan 12 13:27:05 2012 New Revision: 148037 URL: http://llvm.org/viewvc/llvm-project?rev=148037view=rev Log: Convert SemaInit.cpp to pass a callback object to CorrectTypo. And once again improve the typo correction results in certain situations just by moving the existing

[cfe-commits] r148052 - in /cfe/trunk: lib/Sema/SemaCXXScopeSpec.cpp test/SemaCXX/typo-correction.cpp

2012-01-12 Thread Kaelyn Uhrain
Author: rikka Date: Thu Jan 12 16:32:39 2012 New Revision: 148052 URL: http://llvm.org/viewvc/llvm-project?rev=148052view=rev Log: Convert SemaCXXScopeSpec.cpp to pass a callback object to CorrectTypo, improvng the typo correction results in certain situations. Modified:

[cfe-commits] r148085 - in /cfe/trunk: include/clang/Sema/TypoCorrection.h lib/Sema/SemaDeclObjC.cpp lib/Sema/SemaExprObjC.cpp

2012-01-12 Thread Kaelyn Uhrain
Author: rikka Date: Thu Jan 12 19:32:50 2012 New Revision: 148085 URL: http://llvm.org/viewvc/llvm-project?rev=148085view=rev Log: Fix up the calls to CorrectTypo in Sema*ObjC.cpp to use callback objects, and add a basic CorrectionCandidateCallback template class to simplify the fixups.

Re: [cfe-commits] r148085 - in /cfe/trunk: include/clang/Sema/TypoCorrection.h lib/Sema/SemaDeclObjC.cpp lib/Sema/SemaExprObjC.cpp

2012-01-13 Thread Kaelyn Uhrain
On Thu, Jan 12, 2012 at 5:47 PM, Chandler Carruth chandl...@google.comwrote: On Thu, Jan 12, 2012 at 5:32 PM, Kaelyn Uhrain ri...@google.com wrote: Author: rikka Date: Thu Jan 12 19:32:50 2012 New Revision: 148085 URL: http://llvm.org/viewvc/llvm-project?rev=148085view=rev Log: Fix up

[cfe-commits] r148140 - in /cfe/trunk: lib/Sema/SemaExprMember.cpp test/SemaCXX/member-expr.cpp test/SemaCXX/typo-correction.cpp

2012-01-13 Thread Kaelyn Uhrain
Author: rikka Date: Fri Jan 13 15:28:55 2012 New Revision: 148140 URL: http://llvm.org/viewvc/llvm-project?rev=148140view=rev Log: Convert SemaExprMember.cpp to pass a callback object to CorrectTypo, improving the typo correction results in certain situations. This is also the first typo

[cfe-commits] r148155 - in /cfe/trunk: lib/Sema/SemaTemplate.cpp lib/Sema/SemaTemplateVariadic.cpp test/SemaCXX/typo-correction.cpp

2012-01-13 Thread Kaelyn Uhrain
Author: rikka Date: Fri Jan 13 17:10:36 2012 New Revision: 148155 URL: http://llvm.org/viewvc/llvm-project?rev=148155view=rev Log: Convert SemaTemplate*.cpp to pass a callback object to CorrectTypo. The change to SemaTemplateVariadic.cpp improves the typo correction results in certain

Re: [cfe-commits] r152017 - in /cfe/trunk: include/clang/Lex/PPCallbacks.h lib/Lex/PPDirectives.cpp

2012-03-05 Thread Kaelyn Uhrain
On Sun, Mar 4, 2012 at 9:48 PM, Argyrios Kyrtzidis akyr...@gmail.comwrote: Author: akirtzidis Date: Sun Mar 4 23:48:09 2012 New Revision: 152017 URL: http://llvm.org/viewvc/llvm-project?rev=152017view=rev Log: [preprocessor] Enhance the preprocessor callbacks: -Add location parameter

Re: [cfe-commits] r153445 - in /cfe/trunk: include/clang/Sema/TypoCorrection.h lib/Sema/SemaDecl.cpp lib/Sema/SemaLookup.cpp test/FixIt/typo-crash.cpp

2012-03-27 Thread Kaelyn Uhrain
Doug, This band-aid looks good to me, though adding another special flag to the correction callback object somehow seems... dirty. I've added tackling the FIXMEs for actually performing the correction to my queue of things to address once I'm working on clang itself again. ;) Thanks for taking

[cfe-commits] r153962 - in /cfe/trunk: include/clang/Sema/TypoCorrection.h lib/Sema/SemaDecl.cpp lib/Sema/SemaLookup.cpp test/FixIt/typo-crash.cpp

2012-04-03 Thread Kaelyn Uhrain
Author: rikka Date: Tue Apr 3 13:20:11 2012 New Revision: 153962 URL: http://llvm.org/viewvc/llvm-project?rev=153962view=rev Log: Replace the workaround from r153445 with a proper fix. Infinite recursion was happening when DiagnoseInvalidRedeclaration called ActOnFunctionDeclarator to check if

[cfe-commits] r154443 - /cfe/trunk/test/Tooling/clang-check-pwd.cpp

2012-04-10 Thread Kaelyn Uhrain
Author: rikka Date: Tue Apr 10 17:27:27 2012 New Revision: 154443 URL: http://llvm.org/viewvc/llvm-project?rev=154443view=rev Log: Fix quoting to allow shell expansion to occur for shell variables introduced by the test harness' expansion of %t. Modified:

[cfe-commits] [PATCH] Add a warning for a function declaration that shadows a tag type

2012-04-11 Thread Kaelyn Uhrain
Hi, This warning is to help make code like: class Foo { public: enum Bar { X, Y }; void SetBar(Bar bar); // Setter Bar Bar() // Getter private: Bar bar_; }; void Foo::SetBar(Bar bar) { bar_ = bar; } Foo::Bar Foo::Bar() { return bar_; } be a bit easier to diagnose. Currently clang

Re: [cfe-commits] [PATCH] Add a warning for a function declaration that shadows a tag type

2012-04-12 Thread Kaelyn Uhrain
Ping. Unless I hear something, I'll go ahead and commit the patch tomorrow morning. On Wed, Apr 11, 2012 at 1:44 PM, Kaelyn Uhrain ri...@google.com wrote: Hi, This warning is to help make code like: class Foo { public: enum Bar { X, Y }; void SetBar(Bar bar); // Setter Bar Bar

Re: [cfe-commits] [PATCH] Add a warning for a function declaration that shadows a tag type

2012-04-13 Thread Kaelyn Uhrain
in the current lexical context, reducing the number of other unit test failures from 27 to 20. I also switched the warning to DefaultIgnore to take care of the remaining 20 failures (since the tests otherwise work as expected). Cheers, /Manuel On Thu, Apr 12, 2012 at 10:05 PM, Kaelyn Uhrain ri

Re: [cfe-commits] [PATCH] Add a warning for a function declaration that shadows a tag type

2012-04-13 Thread Kaelyn Uhrain
of unit tests that fail with the flag default-enabled to 13. Cheers, Kaelyn On Fri, Apr 13, 2012 at 11:29 AM, Kaelyn Uhrain ri...@google.com wrote: Thanks for the review Manuel! On Fri, Apr 13, 2012 at 9:13 AM, Manuel Klimek kli...@google.com wrote: + function %0 shadows %1 %0; uses of %1 %0

Re: [cfe-commits] [PATCH] Add a warning for a function declaration that shadows a tag type

2012-04-16 Thread Kaelyn Uhrain
On Sat, Apr 14, 2012 at 3:44 AM, Manuel Klimek kli...@google.com wrote: On Fri, Apr 13, 2012 at 7:57 PM, Kaelyn Uhrain ri...@google.com wrote: I just realized that this check probably only applies to C++ code since (unless things changed in a recent standard) C doesn't allow struct/enum

Re: [cfe-commits] r154736 - /cfe/trunk/lib/Sema/SemaLookup.cpp

2012-04-16 Thread Kaelyn Uhrain
Funny you should be making this change, as it is how I originally had the TypoEditDistanceMap. In r134009 last June, Doug changed TypoEditDistanceMap to [d]ynamically allocate the StringMaps used in typo correction so that we don't rely on the existence of a copy constructor. For the record, I

[cfe-commits] r155163 - in /cfe/trunk: lib/Parse/ParseTentative.cpp test/FixIt/fixit.cpp

2012-04-19 Thread Kaelyn Uhrain
Author: rikka Date: Thu Apr 19 18:17:45 2012 New Revision: 155163 URL: http://llvm.org/viewvc/llvm-project?rev=155163view=rev Log: In Parser::isCXXDeclarationSpecifier, consider a non-type identifier followed by an identifier as declaration specificer (except for ObjC). This allows e.g. an

[cfe-commits] r155165 - /cfe/trunk/test/FixIt/fixit.cpp

2012-04-19 Thread Kaelyn Uhrain
Author: rikka Date: Thu Apr 19 18:26:12 2012 New Revision: 155165 URL: http://llvm.org/viewvc/llvm-project?rev=155165view=rev Log: Re-add the closing '}' for the namespace I accidentally deleted when removing a (new) duplicate test whose only difference was the tag type being an enum instead of a

Re: [cfe-commits] r155163 - in /cfe/trunk: lib/Parse/ParseTentative.cpp test/FixIt/fixit.cpp

2012-04-19 Thread Kaelyn Uhrain
On Thu, Apr 19, 2012 at 4:54 PM, David Blaikie dblai...@gmail.com wrote: On Thu, Apr 19, 2012 at 4:17 PM, Kaelyn Uhrain ri...@google.com wrote: Author: rikka Date: Thu Apr 19 18:17:45 2012 New Revision: 155163 URL: http://llvm.org/viewvc/llvm-project?rev=155163view=rev Log

[cfe-commits] [PATCH] Add suggestion for replacing '.' with '-' in failed member reference

2012-04-24 Thread Kaelyn Uhrain
This patch adds a suggestion and related fixit for when a member reference using '.' such as foo.bar() fails because bar() is not a member of foo, but foo defines an operator- and bar() is a member of the object returned by foo's operator-. A more concrete case where this is helpful is with

Re: [cfe-commits] [PATCH] Add suggestion for replacing '.' with '-' in failed member reference

2012-04-25 Thread Kaelyn Uhrain
On Tue, Apr 24, 2012 at 2:37 PM, David Blaikie dblai...@gmail.com wrote: On Tue, Apr 24, 2012 at 2:28 PM, Kaelyn Uhrain ri...@google.com wrote: This patch adds a suggestion and related fixit for when a member reference using '.' such as foo.bar() fails because bar() is not a member of foo

[cfe-commits] r155580 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaExprMember.cpp test/FixIt/fixit.cpp test/SemaCXX/arrow-operator.cpp

2012-04-25 Thread Kaelyn Uhrain
Author: rikka Date: Wed Apr 25 14:49:54 2012 New Revision: 155580 URL: http://llvm.org/viewvc/llvm-project?rev=155580view=rev Log: Add an error message with fixit hint for changing '.' to '-'. This is mainly for attempting to recover in cases where a class provides a custom operator- and a '.'

[cfe-commits] r155677 - in /cfe/trunk: include/clang/Basic/DiagnosticCommonKinds.td lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp test/FixIt/fixit.cpp test/Parser/cxx-using-declaration.cpp

2012-04-26 Thread Kaelyn Uhrain
Author: rikka Date: Thu Apr 26 18:36:17 2012 New Revision: 155677 URL: http://llvm.org/viewvc/llvm-project?rev=155677view=rev Log: Add note to help explain why a tag such as 'struct' is needed to refer to a given type, when the reason is that there is a non-type decl with the same name.

[cfe-commits] r155723 - in /cfe/trunk: include/clang/Basic/DiagnosticCommonKinds.td lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp test/FixIt/fixit.cpp test/Parser/cxx-using-declaration.cpp

2012-04-27 Thread Kaelyn Uhrain
Author: rikka Date: Fri Apr 27 13:26:49 2012 New Revision: 155723 URL: http://llvm.org/viewvc/llvm-project?rev=155723view=rev Log: Imrpove the note text for when a non-type decl hides a tag type Modified: cfe/trunk/include/clang/Basic/DiagnosticCommonKinds.td

Re: [cfe-commits] r155677 - in /cfe/trunk: include/clang/Basic/DiagnosticCommonKinds.td lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp test/FixIt/fixit.cpp test/Parser/cxx-using-declaration.cpp

2012-04-27 Thread Kaelyn Uhrain
On Thu, Apr 26, 2012 at 6:08 PM, David Blaikie dblai...@gmail.com wrote: On Thu, Apr 26, 2012 at 5:37 PM, Richard Smith rich...@metafoo.co.uk wrote: On Thu, Apr 26, 2012 at 4:54 PM, David Blaikie dblai...@gmail.com wrote: On Thu, Apr 26, 2012 at 4:36 PM, Kaelyn Uhrain ri...@google.com

[cfe-commits] r155870 - in /cfe/trunk/lib: Parse/ParseTentative.cpp Sema/SemaExprMember.cpp

2012-04-30 Thread Kaelyn Uhrain
Author: rikka Date: Mon Apr 30 20:16:25 2012 New Revision: 155870 URL: http://llvm.org/viewvc/llvm-project?rev=155870view=rev Log: A couple of very small tweaks suggested by Doug in reply to r155580 and r155163. Modified: cfe/trunk/lib/Parse/ParseTentative.cpp

[cfe-commits] r155871 - /cfe/trunk/lib/Sema/SemaExprMember.cpp

2012-04-30 Thread Kaelyn Uhrain
Author: rikka Date: Mon Apr 30 20:17:53 2012 New Revision: 155871 URL: http://llvm.org/viewvc/llvm-project?rev=155871view=rev Log: Let's use the correct bool this time. Modified: cfe/trunk/lib/Sema/SemaExprMember.cpp Modified: cfe/trunk/lib/Sema/SemaExprMember.cpp URL:

Re: [cfe-commits] r155580 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaExprMember.cpp test/FixIt/fixit.cpp test/SemaCXX/arrow-operator.cpp

2012-04-30 Thread Kaelyn Uhrain
On Mon, Apr 30, 2012 at 5:18 PM, Douglas Gregor dgre...@apple.com wrote: On Apr 25, 2012, at 12:49 PM, Kaelyn Uhrain ri...@google.com wrote: Author: rikka Date: Wed Apr 25 14:49:54 2012 New Revision: 155580 URL: http://llvm.org/viewvc/llvm-project?rev=155580view=rev Log: Add

[cfe-commits] r155965 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/SemaCXX/decl-expr-ambiguity.cpp

2012-05-01 Thread Kaelyn Uhrain
Author: rikka Date: Tue May 1 19:11:40 2012 New Revision: 155965 URL: http://llvm.org/viewvc/llvm-project?rev=155965view=rev Log: Try harder to recognize hidden tag type names in potential declarations instead of giving unhelpful errors about undeclared identifers and missing semicolons.

[cfe-commits] r156091 - /cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp

2012-05-03 Thread Kaelyn Uhrain
Author: rikka Date: Thu May 3 14:46:38 2012 New Revision: 156091 URL: http://llvm.org/viewvc/llvm-project?rev=156091view=rev Log: Silence unused-variable warning when assertions are disabled. Modified: cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp Modified:

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-03-25 Thread Kaelyn Uhrain
bounding size for the set? Thanks, Kaelyn On Mon, Mar 14, 2011 at 10:28 AM, Douglas Gregor dgre...@apple.com wrote: On Mar 9, 2011, at 11:35 AM, Kaelyn Uhrain wrote: I just finished up a new version of my patch earlier this week, which no longer uses the RecursiveASTVisitor (per chandlerc's

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-03-25 Thread Kaelyn Uhrain
On Mon, Mar 14, 2011 at 10:28 AM, Douglas Gregor dgre...@apple.com wrote: 1) Don't walk the namespaces at all; let the check against all of the identifiers in the translation unit winnow the list down to the best candidates based on name alone. We don't know which of these candidates

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-06 Thread Kaelyn Uhrain
Hello Doug, On Wed, Jun 1, 2011 at 9:56 AM, Douglas Gregor dgre...@apple.com wrote: Hello Kaelyn, Sorry for the slw response. It's no problem. After all, life has a nasty habit of getting in the way of coding. ;) On May 20, 2011, at 4:17 PM, Kaelyn Uhrain wrote: Here's a WIP

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-07 Thread Kaelyn Uhrain
On Mon, Jun 6, 2011 at 9:23 PM, Douglas Gregor dgre...@apple.com wrote: On Jun 6, 2011, at 6:13 PM, Kaelyn Uhrain wrote: Hello Doug, On Wed, Jun 1, 2011 at 9:56 AM, Douglas Gregor dgre...@apple.com wrote: Hello Kaelyn, Sorry for the slw response. It's no problem. After all, life

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-09 Thread Kaelyn Uhrain
On Wed, Jun 1, 2011 at 9:56 AM, Douglas Gregor dgre...@apple.com wrote: +// Only perform the qualified lookups for C++ +// FIXME: this breaks test/CXX/basic/basic.lookup/basic.lookup.argdep/p4.cpp +if (getLangOptions().CPlusPlus) { + TmpRes.suppressDiagnostics(); +

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-10 Thread Kaelyn Uhrain
On Fri, Jun 10, 2011 at 9:18 AM, Douglas Gregor dgre...@apple.com wrote: On Jun 9, 2011, at 6:18 PM, Kaelyn Uhrain wrote: On Wed, Jun 1, 2011 at 9:56 AM, Douglas Gregor dgre...@apple.com wrote: +// Only perform the qualified lookups for C++ +// FIXME: this breaks test/CXX/basic

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-10 Thread Kaelyn Uhrain
On Thu, Jun 9, 2011 at 6:34 PM, Chandler Carruth chandl...@google.comwrote: On Thu, Jun 9, 2011 at 6:18 PM, Kaelyn Uhrain ri...@google.com wrote: Quick question about doing this: would it be more cost effective to use a std::multimap to allow iterating through the namespaces in ascending

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-20 Thread Kaelyn Uhrain
AM, Kaelyn Uhrain ri...@google.com wrote: On Thu, Jun 9, 2011 at 6:34 PM, Chandler Carruth chandl...@google.comwrote: On Thu, Jun 9, 2011 at 6:18 PM, Kaelyn Uhrain ri...@google.com wrote: Quick question about doing this: would it be more cost effective to use a std::multimap to allow

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-20 Thread Kaelyn Uhrain
at 10:14 AM, Kaelyn Uhrain ri...@google.com wrote: Managed to not reply to all... which is okay as the patch was against the clang git tree as of a couple weeks ago and recent changes causes a couple of minor merge conflicts. Here's the patch based on the current git HEAD. On Mon, Jun 20, 2011

[cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-02-22 Thread Kaelyn Uhrain
This patch implements checking available C++ namespaces when trying to find typo corrections for unknown identifiers. There are currently 4 broken unit tests (CXX/basic/basic.lookup/basic.lookup.argdep/p4.cpp, CXX/class/class.local/p1.cpp, FixIt/typo.cpp, and SemaObjC/synth-provisional-ivars.m)

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-03-09 Thread Kaelyn Uhrain
-provisional-ivars.m tests are failing, and for those two I'm not entirely sure which parts of the behavior are correct/acceptable and which might be a bug in my changes. Cheers, Kaelyn On Tue, Mar 8, 2011 at 7:46 PM, Douglas Gregor dgre...@apple.com wrote: On Feb 22, 2011, at 11:21 AM, Kaelyn Uhrain

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-22 Thread Kaelyn Uhrain
On Wed, Jun 22, 2011 at 1:23 PM, Douglas Gregor dgre...@apple.com wrote: On Jun 22, 2011, at 10:48 AM, Kaelyn Uhrain wrote: So in the interest of keeping the overall changes a bit more digestible, I've split my dev branch in two. The first part, for which I've attached the latest diff

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-23 Thread Kaelyn Uhrain
+// FIXME: Don't do the lookups if argument dependent lookup is required as +// this will break test/CXX/basic/basic.lookup/basic.lookup.argdep/p4.cpp Is this FIXME still relevant, given that we're doing the appropriate requiresADL check? I've found a problem with the simple ADL

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-06-24 Thread Kaelyn Uhrain
, Kaelyn On Thu, Jun 23, 2011 at 5:11 PM, Kaelyn Uhrain ri...@google.com wrote: +// FIXME: Don't do the lookups if argument dependent lookup is required as +// this will break test/CXX/basic/basic.lookup/basic.lookup.argdep/p4.cpp Is this FIXME still relevant, given that we're doing

[cfe-commits] PATCH: Enhance array bounds checking

2011-07-08 Thread Kaelyn Uhrain
The attached patch enhances the existing array bounds checking to include support for bounds checking on pointer arithmetic when possible (e.g. Foo + 5 or somearray - 7 when the size of somearray is known). It also fixes the bounds checking to work with unary operators like and *; without this

Re: [cfe-commits] [Patch] Typo correction: don't crash on overloaded functions, pr10283

2011-07-11 Thread Kaelyn Uhrain
Looks like the indenting on the FIXME you added needs to be fixed so that the start of both lines of the comment are equal to each other and to the surrounding code, but otherwise the code changes look fine. One big issue regarding the unit test though: the test does not test clang's -fixit code

Re: [cfe-commits] PATCH: Add support for C++ namespace-aware typo correcting

2011-07-13 Thread Kaelyn Uhrain
Thanks for the heads-up, Doug. :) On Tue, Jul 12, 2011 at 6:30 PM, Douglas Gregor dgre...@apple.com wrote: On Jun 27, 2011, at 5:07 PM, Kaelyn Uhrain wrote: And here is the second half, which changes the rest of the callers of CorrectTypo, expands the unit test, adds a new test case

  1   2   3   >