Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2014-07-03 14:40:45 +0000
committerElena Laskavaia2014-07-15 20:48:21 +0000
commit29b783155fd3acec6c0b5b65237a70fb0e219260 (patch)
tree0802984faf708429265832cf94ac9d11e606a0c5 /build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder
parent4ec3cdbbe771f13ff308c5701c1fb7f4373a2d38 (diff)
downloadorg.eclipse.cdt-29b783155fd3acec6c0b5b65237a70fb0e219260.tar.gz
org.eclipse.cdt-29b783155fd3acec6c0b5b65237a70fb0e219260.tar.xz
org.eclipse.cdt-29b783155fd3acec6c0b5b65237a70fb0e219260.zip
Bug 408545 - Added single checkbox to enable gcov. (edit commit msg)
I added a checkbox to enable gCov via a single checkbox to enable gcov in the compiler. It then uses the applicability calculator to automatically enable the linker if the compiler option is set. Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com> Change-Id: I561d7263d578a7807e890fce5518e6fc2ebb2bb2 Reviewed-on: https://git.eclipse.org/r/29403 Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com> Tested-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GcovAppCalculator.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GcovAppCalculator.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GcovAppCalculator.java
new file mode 100644
index 00000000000..0b29b528999
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GcovAppCalculator.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Red Hat, Inc.
+ *
+ * *Based on implementation of GprofAppCalculator*
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * lufimtse : Leo Ufimtsev lufimtse@redhat.com
+ *******************************************************************************/
+
+package org.eclipse.cdt.managedbuilder.gnu.ui;
+
+public class GcovAppCalculator extends ProfAppCalculator {
+ @Override
+ protected String getOptionIdPattern() {
+ return ".compiler.option.debugging.codecov"; //$NON-NLS-1$
+ }
+}

Back to the top