Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: PRESUBMIT.py

Issue 1847353003: Add presubmit check to enforce that we don't add "#pragma comment(lib" anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 5621f9fd037151f6072d0ed06d0009e8efa9198d..705c511a194eba1d5e114a1d959ec57dc4852adc 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -270,6 +270,14 @@ _BANNED_CPP_FUNCTIONS = (
r'^base[\\\/]message_loop[\\\/].*',
),
),
+ (
+ '#pragma comment(lib,',
+ (
+ 'Specify libraries to link with in build files and not in the source.',
+ ),
+ True,
+ (),
+ ),
)
_IPC_ENUM_TRAITS_DEPRECATED = (
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698