Improve C++ linting, move exceptions inline

This commit is contained in:
Lovell Fuller 2019-11-14 22:06:38 +00:00
parent 1b401b1195
commit 0d1278dade
3 changed files with 4 additions and 7 deletions

View File

@ -150,10 +150,7 @@
"cc": {
"linelength": "120",
"filter": [
"build/c++11",
"build/include",
"runtime/indentation_namespace",
"runtime/references"
"build/include"
]
}
}

View File

@ -17,7 +17,7 @@
#include <string.h>
#include <vector>
#include <queue>
#include <mutex>
#include <mutex> // NOLINT(build/c++11)
#include <node.h>
#include <node_buffer.h>

View File

@ -43,7 +43,7 @@ using vips::VImage;
namespace sharp {
struct InputDescriptor {
struct InputDescriptor { // NOLINT(runtime/indentation_namespace)
std::string name;
std::string file;
char *buffer;
@ -92,7 +92,7 @@ namespace sharp {
// Create an InputDescriptor instance from a v8::Object describing an input image
InputDescriptor* CreateInputDescriptor(
v8::Local<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist);
v8::Local<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist); // NOLINT(runtime/references)
enum class ImageType {
JPEG,