Clang:...gnostic(3pm)
β¨ NAME β¨
Clang::Diagnostic β the Clang diagnostic class, bestie π
It lives in the Clang:...gnostic corner of the User Contributed Perl Documentation, and honestly? It's iconic.
π VERSION π
version 0.09 β yeah she's been around, and she still eats π
π¦ DESCRIPTION π¦
okay so, a Clang::Diagnostic is literally just a lil object that represents a diagnostic reported by the compiler π
like when your compiler is screaming at you? that's a diagnostic. and this class is the lil guy holding it so you can look at it and go "bestie what". periodt.
πΈ METHODS πΈ
π format( $with_source )
Format the given Clang::Diagnostic as a string β¨
And listen β if $with_source is true, then the stringified source location of the diagnostic gets included too π So you get the whole vibe, not just the message. iykyk.
π location( )
Retrieve the location of the given diagnostic π«Ά
This one returns three values, so catch them all:
- a string containing the source file name
- an integer containing the line number
- another integer containing the column number
three value slay. no cap. π
π§ AUTHOR π§
Alessandro Ghedini <alexbio@cpan.org> β the icon who made this happen π
β¨
β 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. fr fr π
and that's the whole page babes π this was perl v5.42.3, dated 2026-09-03, delivered to you as User Contributed Perl Documentation. mwah, go format some diagnostics ππ¦β¨
π¦ 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