Skip to content

Commit

Permalink
Merge branch 'topic/brackets_for_checks' into 'master'
Browse files Browse the repository at this point in the history
use angle brackets for checks with cpl codepeer's preconditions

See merge request eng/ide/gnatstudio!122
  • Loading branch information
clementfumex committed May 9, 2023
2 parents a7264f3 + 477a54a commit 593f296
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code_analysis/src/codepeer.adb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,11 @@ package body CodePeer is
begin
for Check of Self.Checks loop
if Length (Aux) = 0 then
Append (Aux, " (");
if Is_CPL then
Append (Aux, " <");
else
Append (Aux, " (");
end if;

else
Append (Aux, ", ");
Expand All @@ -267,7 +271,11 @@ package body CodePeer is
end loop;

if Length (Aux) /= 0 then
Append (Aux, ")");
if Is_CPL then
Append (Aux, ">");
else
Append (Aux, ")");
end if;
end if;

return Aux;
Expand Down

0 comments on commit 593f296

Please sign in to comment.