lin2k / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

extern keyword in .cpp files is almost always a mistake #178

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As there are two possibilities:

1. It's a definition, and it's not needed.
2. It's a declaration, and needs to be in a .h file.

See 
https://code.google.com/p/chromium/codesearch#search/&q=file:pdfium/%20file:.cpp
%20%5E%5Cs*extern%5Cs%5B%5E%22%5D&sq=package:chromium&type=cs

Original issue reported on code.google.com by tsepez@chromium.org on 30 Jun 2015 at 10:50