Skip to content

Commit

Permalink
Full working parser
Browse files Browse the repository at this point in the history
  • Loading branch information
djphoenix committed Nov 17, 2015
0 parents commit 7935759
Show file tree
Hide file tree
Showing 6 changed files with 726 additions and 0 deletions.
25 changes: 25 additions & 0 deletions LICENSE.md
@@ -0,0 +1,25 @@
The MIT License (MIT)
=====================

Copyright © `2015` `Yury Popov`

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
10 changes: 10 additions & 0 deletions README.md
@@ -0,0 +1,10 @@
```
Usage: llvm-cov-xml [-v | --verbose] [-o OUTFILE | --output OUTFILE] [-r ROOT | --root ROOT]
llvm-cov-xml [-u | --usage]
-u --usage Prints available arguments (this text)
-v --verbose Verbose logging
-o --output Output file path
(default: coverage.xml)
-r --root Source root directory
(default: current directory)
```
7 changes: 7 additions & 0 deletions coverage.xml
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<!DOCTYPE coverage SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'>
<coverage branch-rate="1.0" line-rate="1.0" timestamp="1447760545" version="llvm-cov-xml 1.0">
<sources><source></source></sources>
<packages>
</packages>
</coverage>
247 changes: 247 additions & 0 deletions llvm-cov-xml.xcodeproj/project.pbxproj
@@ -0,0 +1,247 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
D01DFF271BE0EE9D000AC429 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = D01DFF261BE0EE9D000AC429 /* main.swift */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
D01DFF211BE0EE9D000AC429 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
D01DFF231BE0EE9D000AC429 /* llvm-cov-xml */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "llvm-cov-xml"; sourceTree = BUILT_PRODUCTS_DIR; };
D01DFF261BE0EE9D000AC429 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
D01DFF201BE0EE9D000AC429 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
D01DFF1A1BE0EE9D000AC429 = {
isa = PBXGroup;
children = (
D01DFF251BE0EE9D000AC429 /* llvm-cov-xml */,
D01DFF241BE0EE9D000AC429 /* Products */,
);
sourceTree = "<group>";
};
D01DFF241BE0EE9D000AC429 /* Products */ = {
isa = PBXGroup;
children = (
D01DFF231BE0EE9D000AC429 /* llvm-cov-xml */,
);
name = Products;
sourceTree = "<group>";
};
D01DFF251BE0EE9D000AC429 /* llvm-cov-xml */ = {
isa = PBXGroup;
children = (
D01DFF261BE0EE9D000AC429 /* main.swift */,
);
path = "llvm-cov-xml";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
D01DFF221BE0EE9D000AC429 /* llvm-cov-xml */ = {
isa = PBXNativeTarget;
buildConfigurationList = D01DFF2A1BE0EE9D000AC429 /* Build configuration list for PBXNativeTarget "llvm-cov-xml" */;
buildPhases = (
D01DFF1F1BE0EE9D000AC429 /* Sources */,
D01DFF201BE0EE9D000AC429 /* Frameworks */,
D01DFF211BE0EE9D000AC429 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = "llvm-cov-xml";
productName = "llvm-cov-xml";
productReference = D01DFF231BE0EE9D000AC429 /* llvm-cov-xml */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
D01DFF1B1BE0EE9D000AC429 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0710;
LastUpgradeCheck = 0710;
ORGANIZATIONNAME = "DJ PhoeniX";
TargetAttributes = {
D01DFF221BE0EE9D000AC429 = {
CreatedOnToolsVersion = 7.1;
};
};
};
buildConfigurationList = D01DFF1E1BE0EE9D000AC429 /* Build configuration list for PBXProject "llvm-cov-xml" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = D01DFF1A1BE0EE9D000AC429;
productRefGroup = D01DFF241BE0EE9D000AC429 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
D01DFF221BE0EE9D000AC429 /* llvm-cov-xml */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
D01DFF1F1BE0EE9D000AC429 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D01DFF271BE0EE9D000AC429 /* main.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
D01DFF281BE0EE9D000AC429 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
D01DFF291BE0EE9D000AC429 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
};
name = Release;
};
D01DFF2B1BE0EE9D000AC429 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
D01DFF2C1BE0EE9D000AC429 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
D01DFF1E1BE0EE9D000AC429 /* Build configuration list for PBXProject "llvm-cov-xml" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D01DFF281BE0EE9D000AC429 /* Debug */,
D01DFF291BE0EE9D000AC429 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D01DFF2A1BE0EE9D000AC429 /* Build configuration list for PBXNativeTarget "llvm-cov-xml" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D01DFF2B1BE0EE9D000AC429 /* Debug */,
D01DFF2C1BE0EE9D000AC429 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = D01DFF1B1BE0EE9D000AC429 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7935759

Please sign in to comment.