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 π )
π LICENSE AND COPYRIGHT π
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
- ubuntu stonking: libclang-perl 0.09-6build9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms