Conversation
clang/lib/3C/ConstraintVariables.cpp
Outdated
| for (auto It = Vars.begin(); It != Vars.end(); It++, Idx++) { | ||
| getQualString(Idx, S); | ||
| } | ||
|
|
||
| return S.str(); |
There was a problem hiding this comment.
It looks like this could generate i.e. "const const" if you have const int * const * a or something like that. So the function name is appropriate. But it seems to be used below as a single qualifier. Is that correct?
|
@aaronjeline Let me know if you need help with the |
| typedef int * * const a; | ||
| //CHECK: typedef const _Ptr<_Ptr<int>> a; | ||
| void xxx(void) { | ||
| a b; |
There was a problem hiding this comment.
Since this rewrites const (or removes it), you can add a check here, maybe even with a comment on why it's ok to add/remove it.
|
I had an idea for a new test of the "3C generated changes to this file even though it is not allowed to write to the file" error. This code is simple but crazy enough that we may not have to update the test again for a while, if ever.
void
#include "partial_defn.h"
foo(int *x) {}Then Update: Since I have to make other changes to |
Also change the unimplemented canWrite constraints case from a typedef to a crazy #include in anticipation of #408.
mattmccutchen-cci
left a comment
There was a problem hiding this comment.
I'm reviewing only the canWrite constraints portion of this PR. There are a few things I'd like to see added.
mwhicks1
left a comment
There was a problem hiding this comment.
Nothing to add to open issues in the comments. Seems OK on quick glance, beyond this.
Co-authored-by: Matt McCutchen (Correct Computation) <matt@correctcomputation.com>
Co-authored-by: Matt McCutchen (Correct Computation) <matt@correctcomputation.com>
mattmccutchen-cci
left a comment
There was a problem hiding this comment.
The root-cause and canWrite stuff looks good to me now; thanks!
john-h-kastner
left a comment
There was a problem hiding this comment.
I think all the substantial work is done for this PR. There are a few formatting issue I commented on, but looks good otherwise.
mattmccutchen-cci
left a comment
There was a problem hiding this comment.
I think the parts I know about are OK modulo this comment.
john-h-kastner
left a comment
There was a problem hiding this comment.
I think this is good to go. It should fix at least one of the compilation errors for Lua.
|
Fantastic! Let's get it in there. :) |
No description provided.