src/CXRefProcess.cpp
/*
 * translation-unit:
 *  external-declaration
 *  translation-unit external-declaration
 */
translation-unit:
external-declaration
translation-unit external-declaration
translation - unit : external - declaration translation - unit external - declaration
void
CXRefProcessTranslationUnit(CXRefTokenP translation_unit)
{
  std::vector<CXRefTokenP> external_declarations;
  CXRefGetAllTokenChildrenOfType(translation_unit, EXTERNAL_DECLARATION, external_declarations);
  for (uint i = 0; i < external_declarations.size(); i++)
    CXRefProcessExternalDeclaration(external_declarations[i]);
}
void CXRefProcessTranslationUnit ( CXRefTokenP translation_unit ) { std :: vector < CXRefTokenP > external_declarations ; CXRefGetAllTokenChildrenOfType ( translation_unit , EXTERNAL_DECLARATION , external_declarations ) ; for ( uint i = 0 ; i < external_declarations . size ( ) ; i ++ ) CXRefProcessExternalDeclaration ( external_declarations [ i ] ) ; }
translation-unit:
  external-declaration
  translation-unit external-declaration
translation - unit : external - declaration translation - unit external - declaration