search for: cxxoperatorid

Displaying 2 results from an estimated 2 matches for "cxxoperatorid".

2016 Dec 21
2
DeclarationName and the StringRef.
...o and same info used to create decl spec with FunctionDecl::Create () . Question is , How do ,someone instantiate the DeclarationName instance using StringRef ,because in the current trunk code snap ,we see that the DeclarationName can be constructed using the IdentifierInfo or Objc Selector or CXXOperatorId etc as argument in the constructor . The code i.e void appendExtern(StringRef Sr) { char *ExternChar = const_cast<char *> (Sr.data()); *Ptr =reinterpret_cast<void *>(ExternChar); this->ExternName = DeclarationName::getFromOpaquePtr(Ptr); } the above is kind of hack ,may res...
2016 Dec 21
0
DeclarationName and the StringRef.
...> with FunctionDecl::Create () . > > Question is , > > How do ,someone instantiate the DeclarationName instance using > StringRef ,because in the current trunk code snap ,we see that > the DeclarationName can be constructed using the IdentifierInfo or > Objc Selector or CXXOperatorId etc as argument in the constructor . > > The code i.e > void appendExtern(StringRef Sr) > { > char *ExternChar = const_cast<char *> (Sr.data()); > *Ptr =reinterpret_cast<void *>(ExternChar); > this->ExternName = DeclarationName::getFromOpaquePtr(Ptr); > &...