cpplint Questions

5

Solved

I want to run cpplint.py on my whole project not for single file to get a report for all C/C++ files in the project. How to do this on macOS and Windows?
Alleenallegation asked 9/7, 2015 at 5:0

6

Solved

I already checked this post Can I use if (pointer) instead of if (pointer != NULL)? and some other posts on net. But it is not stating any difference between two statements. Problem: As I run cp...
Centare asked 31/7, 2016 at 10:0

0

Is there a lint script that will enforce use of this for class variables? Ex - class A { int var1; void func() { return var1; } } should be - class A { int var1; void func() { retur...
Bekelja asked 10/1, 2018 at 11:13

1

Solved

When running cpplint, I run into some warnings that I'd like to completely disable. Specifically the copyright message & whitespaces: range.h:0: No copyright message found. You should have a l...
Ladylike asked 14/8, 2017 at 5:18

1

Solved

I wish that each time I ":w" to save a .h/.cpp file in vim, vim will automatically run cpplint to check my format, and change the file if needed. How to specify this with autocmd? Thanks.
Safelight asked 19/11, 2016 at 14:47

2

Solved

I'm trying to get a random number in C++ and I'm using rand(). This is what cpplint says: Consider using rand_r(...) instead of rand(...) for improved thread safety. I'm switching to rand_r an...
Temikatemp asked 19/3, 2015 at 0:26

4

Solved

The Google C++ Style Guide draws a clear distinction (strictly followed by cpplint.py) between input parameters(→ const ref, value) and input-output or output parameters (→ non const pointers) : ...
Selfabnegation asked 18/10, 2014 at 15:10

2

Solved

I was just playing around with cpplint and tried running it on some code I had written for fun. I realized that the following lines were flagged with the error message :- #include <iostream>...
Sharma asked 12/10, 2012 at 13:26
1

© 2022 - 2024 — McMap. All rights reserved.