Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce NoBitsStdCpp verbosity #207

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Reduce NoBitsStdCpp verbosity #207

merged 1 commit into from
Dec 11, 2023

Conversation

Virv12
Copy link
Member

@Virv12 Virv12 commented Dec 11, 2023

The sanity check NoBitsStdCpp is too vebose, this PR reduce the screen space used by the generated warning.

Before:

Warning: bits/stdc++.h included from sol/sol_db.cpp
   Note: This won't compile under Clang
         sol/sol_db.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^

Warning: bits/stdc++.h included from sol/sol_db_2.cpp
   Note: This won't compile under Clang
         sol/sol_db_2.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^

Warning: bits/stdc++.h included from sol/sol_db_qn.cpp
   Note: This won't compile under Clang
         sol/sol_db_qn.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^

Warning: bits/stdc++.h included from sol/sol_db_qn2.cpp
   Note: This won't compile under Clang
         sol/sol_db_qn2.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^

Warning: bits/stdc++.h included from sol/sol_db_qn3.cpp
   Note: This won't compile under Clang
         sol/sol_db_qn3.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^

After:

Warning: Usage of "bits/stdc++.h" is discouraged
   Note: This won't compile under Clang
         sol/sol_db.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^
         sol/sol_db_2.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^
         sol/sol_db_qn.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^
         sol/sol_db_qn2.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^
         sol/sol_db_qn3.cpp:1:0
         1 | #include <bits/stdc++.h>
             ^^^^^^^^^^^^^^^^^^^^^^^^

@edomora97 edomora97 merged commit 72a118b into olimpiadi-informatica:master Dec 11, 2023
3 checks passed
@Virv12 Virv12 deleted the less-verbose-bits branch December 11, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants