io.joern.c2cpg.astcreation.FullNameProvider
See theFullNameProvider companion trait
object FullNameProvider
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FullNameProvider.type
Members list
Type members
Classlikes
final case class MethodFullNameInfo(name: String, fullName: String, signature: String, returnType: String)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Types
Value members
Concrete methods
Removes template type parameters from qualified names while preserving special tags.
Removes template type parameters from qualified names while preserving special tags.
This method strips the angle brackets and their contents from type names, which is useful for simplifying complex templated type names. It preserves certain special tags that are enclosed in angle brackets (like <lambda>, <const>, etc.) to maintain semantic meaning.
Examples:
stripTemplateTags("std::vector<int>") == "std::vector"
stripTemplateTags("Foo.Bar<T>.<lambda>1") == "Foo.Bar.<lambda>1" // preserves the special <lambda> tag
stripTemplateTags("std::map<std::string, std::vector<int>>") == "std::map" // removes nested template parameters
Value parameters
- input
-
The input string that may contain template tags
Attributes
- Returns
-
The string with template tags removed but special tags preserved
In this article