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 πŸ’…βœ¨


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