function parseDiagSet(cxDiagSet, parseChildren) {
  const messages = [];
  const size = libclang.clang_getNumDiagnosticsInSet(cxDiagSet);
  for (let i = 0; i < size; i++) {
    const diag = libclang.clang_getDiagnosticInSet(cxDiagSet, i);

    const message = parseDiag(diag);
    if (parseChildren) {
      const children = libclang.clang_getChildDiagnostics(diag);
      message.trace = parseDiagSet(children, false);
    }

    // filter out this warning headers using #pragma once
    if ('#pragma once in main file' != message.text) {
      messages.push(message);
    }

    libclang.clang_disposeDiagnostic(diag);
  }
  return messages;
}
/**
 * Read a CXDiagnosticSet from libclang and format the diagnostics in a form
 * understood by the atom linter.
 * Calls dispose on the diagnostic set.
 *
 * @param parseChildren flag
 * @return an array of diagnostic objects
 */
Read a CXDiagnosticSet from libclang and format the diagnostics in a form
understood by the atom linter.
Calls dispose on the diagnostic set.

@param parseChildren flag
@return an array of diagnostic objects
Read a CXDiagnosticSet from libclang and format the diagnostics in a form understood by the atom linter . Calls dispose on the diagnostic set . @param parseChildren flag @return an array of diagnostic objects
function parseDiagSet(cxDiagSet, parseChildren) {
  const messages = [];
  const size = libclang.clang_getNumDiagnosticsInSet(cxDiagSet);
  for (let i = 0; i < size; i++) {
    const diag = libclang.clang_getDiagnosticInSet(cxDiagSet, i);
    const message = parseDiag(diag);
    if (parseChildren) {
      const children = libclang.clang_getChildDiagnostics(diag);
      message.trace = parseDiagSet(children, false);
    }
    if ('#pragma once in main file' != message.text) {
      messages.push(message);
    }
    libclang.clang_disposeDiagnostic(diag);
  }
  return messages;
}
function parseDiagSet ( cxDiagSet , parseChildren ) { const messages = [ ] ; const size = libclang . clang_getNumDiagnosticsInSet ( cxDiagSet ) ; for ( let i = 0 ; i < size ; i ++ ) { const diag = libclang . clang_getDiagnosticInSet ( cxDiagSet , i ) ; const message = parseDiag ( diag ) ; if ( parseChildren ) { const children = libclang . clang_getChildDiagnostics ( diag ) ; message . trace = parseDiagSet ( children , false ) ; } if ( '#pragma once in main file' != message . text ) { messages . push ( message ) ; } libclang . clang_disposeDiagnostic ( diag ) ; } return messages ; }
Read a CXDiagnosticSet from libclang and format the diagnostics in a form
 understood by the atom linter.
Read a CXDiagnosticSet from libclang and format the diagnostics in a form understood by the atom linter .
// filter out this warning headers using #pragma once