Clang::Type(3pm)

πŸ’– Clang::Type πŸ’–

okay so bestie, welcome to Clang::Type β€” it's a Clang type class, and honestly? it's giving "small but mighty" πŸ’…. this page lives in the User Contributed Perl Documentation section of your man pages, and i'm about to walk you through every single bit of it. no skips, no shortcuts, we're doing the whole thing 🫢


✨ NAME ✨

Clang::Type β€” Clang type class. that's it, that's the name. short, sweet, iconic πŸ‘‘


🌸 VERSION 🌸

version 0.09

(yes bestie, 0.09. write it down fr fr, version numbers matter 😌)


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, a Clang::Type represents the type of an element in the AST. that's the whole vibe β€” it's the thing that tells you what kind of thing something is once you're poking around inside the AST. AST stands for Abstract Syntax Tree, and if you know you know 🧚✨


πŸ’… METHODS πŸ’…

okay this is the main character section, every method gets its own little spotlight:

🌈 declaration( )

retrieve the Clang::Cursor that points to the declaration of the given type. so when you're like "wait, where was this thing actually declared??" β€” this is the method that hands you the cursor pointing right at it πŸ”₯

⭐ kind( )

retrieve the Clang::TypeKind of the given type. it's the "what flavor of type is this" method, and it returns you a proper Clang::TypeKind object. slay πŸ’…

πŸŽ€ is_const( )

determine whether the given type has the const qualifier. yes/no answer, const or not const, that's the whole job 🫢

πŸ’œ is_volatile( )

determine whether the given type has the volatile qualifier. same energy as the last one but for volatile πŸ’œ

🌸 is_restrict( )

determine whether the given type has the restrict qualifier. and yes, rounding out the qualifier trio β€” const, volatile, restrict, the iconic trio fr fr ✨


πŸ‘‘ AUTHOR πŸ‘‘

Alessandro Ghedini <alexbio@cpan.org>

(hi Alessandro, you ate πŸ’…)


Copyright 2012 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either:

  • the GNU General Public License as published by the Free Software Foundation; or
  • the Artistic License.

See http://dev.perl.org/licenses/ for more information.

bestie you genuinely have options here, it's an either/or situation and you should actually read the licenses before you go redistributing stuff. not me being the responsible one for once 😭

and that's the whole page, no cap 🫢 this was perl v5.42.3, dated 2026-09-03, and it's the Clang::Type(3pm) page β€” go forth and type-check everything, you've got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from