Displaying 9 results from an estimated 9 matches for "typeloc".
Did you mean:
typelen
2012 Nov 30
3
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...iscuss the possibility of extending the cast
> > infrastructure to handle this.
> >
> > On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote:
> >> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
> >>> TypeLoc casting looks bogus.
> >>>
> >>> TypeLoc derived types return true from classof when the dynamic type
> >>> is not actually an instance of the derived type. The TypeLoc is then
> >>> (erroneously) cast to the derived type and the derived type's im...
2012 Dec 05
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...ty of extending the cast
>> > infrastructure to handle this.
>> >
>> > On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote:
>> >> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
>> >>> TypeLoc casting looks bogus.
>> >>>
>> >>> TypeLoc derived types return true from classof when the dynamic type
>> >>> is not actually an instance of the derived type. The TypeLoc is then
>> >>> (erroneously) cast to the derived type and the deriv...
2013 Feb 11
3
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...cast
>>> > infrastructure to handle this.
>>> >
>>> > On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote:
>>> >> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
>>> >>> TypeLoc casting looks bogus.
>>> >>>
>>> >>> TypeLoc derived types return true from classof when the dynamic type
>>> >>> is not actually an instance of the derived type. The TypeLoc is then
>>> >>> (erroneously) cast to the derived ty...
2012 Nov 30
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...; Moving to LLVM dev to discuss the possibility of extending the cast
> infrastructure to handle this.
>
> On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote:
>> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
>>> TypeLoc casting looks bogus.
>>>
>>> TypeLoc derived types return true from classof when the dynamic type
>>> is not actually an instance of the derived type. The TypeLoc is then
>>> (erroneously) cast to the derived type and the derived type's implicit
>>>...
2012 Nov 29
2
[LLVMdev] [cfe-dev] UB in TypeLoc casting
Moving to LLVM dev to discuss the possibility of extending the cast
infrastructure to handle this.
On Tue, Nov 20, 2012 at 5:51 PM, John McCall <rjmccall at apple.com> wrote:
> On Nov 18, 2012, at 5:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
>> TypeLoc casting looks bogus.
>>
>> TypeLoc derived types return true from classof when the dynamic type
>> is not actually an instance of the derived type. The TypeLoc is then
>> (erroneously) cast to the derived type and the derived type's implicit
>> copy ctor is execute...
2013 Feb 16
0
[LLVMdev] [cfe-dev] UB in TypeLoc casting
...l(SVal) ctors in each SVal derived type - so adding a bit of
> boilerplate ctors to all those classes)
>
> and replace "cast<FooSVal>(bar)" with "bar.castAs<FooSVal>()" and
> dyn_cast with getAs similarly? & similarly for the ProgramPoint (&
> TypeLoc - which I'm already working on) hierarchies?
>
Sorry everyone for not seeing this. Jordan was nice enough to ping me. I would be perfectly fine with this change, and I think it looks cleaner anyways. I think it is a great idea.
-------------- next part --------------
An HTML attachment...
2016 Jul 20
2
[XRay] Build instrumented Clang, some analysis results
...const
96244 llvm::hashing::detail::hash_short(char const*, unsigned long, unsigned long)
94872 _ZN4llvm7hashing6detail23hash_combine_range_implIKjEENSt9enable_ifIXsr16is_hashable_dataIT_EE5valueENS_9hash_codeEE4typeEPS5_S9_
91536 clang::DeclContext::lookup(clang::DeclarationName) const
84122 clang::TypeLoc::getNextTypeLocImpl(clang::TypeLoc)
81368 clang::TypeLoc::getLocalSourceRangeImpl(clang::TypeLoc)
80626 clang::FunctionDecl::getCanonicalDecl()
79489 clang::TagDecl::getDefinition() const
77347 clang::Lexer::LexIdentifier(clang::Token&, char const*)
- The top few slowest (filtered by hand, bec...
2019 Jan 25
0
[klibc:update-dash] parser: Add syntax stack for recursive parsing
...;Unterminated quoted string");
- if (varnest != 0) {
+ if (synstack->varnest != 0) {
/* { */
synerror("Missing '}'");
}
@@ -1202,6 +1234,8 @@ parsesub: {
PARSEBACKQNEW();
}
} else {
+ const char *newsyn = synstack->syntax;
+
USTPUTC(CTLVAR, out);
typeloc = out - (char *)stackblock();
STADJUST(1, out);
@@ -1252,6 +1286,8 @@ varname:
}
if (subtype == 0) {
+ int cc = c;
+
switch (c) {
case ':':
subtype = VSNUL;
@@ -1265,27 +1301,40 @@ varname:
break;
case '%':
case '#':
- {
- int cc...
2020 Mar 28
0
[klibc:update-dash] dash: parser: Add syntax stack for recursive parsing
...;Unterminated quoted string");
- if (varnest != 0) {
+ if (synstack->varnest != 0) {
/* { */
synerror("Missing '}'");
}
@@ -1202,6 +1234,8 @@ parsesub: {
PARSEBACKQNEW();
}
} else {
+ const char *newsyn = synstack->syntax;
+
USTPUTC(CTLVAR, out);
typeloc = out - (char *)stackblock();
STADJUST(1, out);
@@ -1252,6 +1286,8 @@ varname:
}
if (subtype == 0) {
+ int cc = c;
+
switch (c) {
case ':':
subtype = VSNUL;
@@ -1265,27 +1301,40 @@ varname:
break;
case '%':
case '#':
- {
- int cc...